Home
last modified time | relevance | path

Searched refs:border_color (Results 1 – 25 of 69) sorted by relevance

123

/third_party/mesa3d/src/mesa/main/
Dsamplerobj.c132 sampObj->Attrib.state.border_color.f[0] = 0; in _mesa_init_sampler_object()
133 sampObj->Attrib.state.border_color.f[1] = 0; in _mesa_init_sampler_object()
134 sampObj->Attrib.state.border_color.f[2] = 0; in _mesa_init_sampler_object()
135 sampObj->Attrib.state.border_color.f[3] = 0; in _mesa_init_sampler_object()
655 memcpy(samp->Attrib.state.border_color.f, params, 4 * sizeof(float)); in set_sampler_border_colorf()
667 memcpy(samp->Attrib.state.border_color.i, params, 4 * sizeof(float)); in set_sampler_border_colori()
679 memcpy(samp->Attrib.state.border_color.ui, params, 4 * sizeof(float)); in set_sampler_border_colorui()
1485 params[0] = FLOAT_TO_INT(sampObj->Attrib.state.border_color.f[0]); in _mesa_GetSamplerParameteriv()
1486 params[1] = FLOAT_TO_INT(sampObj->Attrib.state.border_color.f[1]); in _mesa_GetSamplerParameteriv()
1487 params[2] = FLOAT_TO_INT(sampObj->Attrib.state.border_color.f[2]); in _mesa_GetSamplerParameteriv()
[all …]
Dsamplerobj.h151 samp->Attrib.IsBorderColorNonZero = samp->Attrib.state.border_color.ui[0] || in _mesa_update_is_border_color_nonzero()
152 samp->Attrib.state.border_color.ui[1] || in _mesa_update_is_border_color_nonzero()
153 samp->Attrib.state.border_color.ui[2] || in _mesa_update_is_border_color_nonzero()
154 samp->Attrib.state.border_color.ui[3]; in _mesa_update_is_border_color_nonzero()
Dtexturebindless.c547 size_t size = sizeof(samp->Attrib.state.border_color.ui); in is_sampler_border_color_valid()
560 if (!memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[0], size) || in is_sampler_border_color_valid()
561 !memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[1], size) || in is_sampler_border_color_valid()
562 !memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[2], size) || in is_sampler_border_color_valid()
563 !memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[3], size)) in is_sampler_border_color_valid()
566 if (!memcmp(samp->Attrib.state.border_color.ui, valid_integer_border_colors[0], size) || in is_sampler_border_color_valid()
567 !memcmp(samp->Attrib.state.border_color.ui, valid_integer_border_colors[1], size) || in is_sampler_border_color_valid()
568 !memcmp(samp->Attrib.state.border_color.ui, valid_integer_border_colors[2], size) || in is_sampler_border_color_valid()
569 !memcmp(samp->Attrib.state.border_color.ui, valid_integer_border_colors[3], size)) in is_sampler_border_color_valid()
Dtexparam.c850 memcpy(texObj->Sampler.Attrib.state.border_color.f, params, 4 * sizeof(float)); in set_tex_parameterf()
852 texObj->Sampler.Attrib.state.border_color.f[RCOMP] = CLAMP(params[0], 0.0F, 1.0F); in set_tex_parameterf()
853 texObj->Sampler.Attrib.state.border_color.f[GCOMP] = CLAMP(params[1], 0.0F, 1.0F); in set_tex_parameterf()
854 texObj->Sampler.Attrib.state.border_color.f[BCOMP] = CLAMP(params[2], 0.0F, 1.0F); in set_tex_parameterf()
855 texObj->Sampler.Attrib.state.border_color.f[ACOMP] = CLAMP(params[3], 0.0F, 1.0F); in set_tex_parameterf()
1160 COPY_4V(texObj->Sampler.Attrib.state.border_color.i, params); in _mesa_texture_parameterIiv()
1189 COPY_4V(texObj->Sampler.Attrib.state.border_color.ui, params); in _mesa_texture_parameterIuiv()
2300 params[0] = CLAMP(obj->Sampler.Attrib.state.border_color.f[0], 0.0F, 1.0F); in get_tex_parameterfv()
2301 params[1] = CLAMP(obj->Sampler.Attrib.state.border_color.f[1], 0.0F, 1.0F); in get_tex_parameterfv()
2302 params[2] = CLAMP(obj->Sampler.Attrib.state.border_color.f[2], 0.0F, 1.0F); in get_tex_parameterfv()
[all …]
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_uniforms.c121 float border_color[4]; in write_texture_border_color() local
123 border_color[i] = sampler->border_color.f[i]; in write_texture_border_color()
126 border_color[i] = in write_texture_border_color()
127 util_format_linear_to_srgb_float(border_color[i]); in write_texture_border_color()
135 border_color, in write_texture_border_color()
144 sampler->border_color.f[0]) << 8; in write_texture_border_color()
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3dx_state.c609 border.i[0] = cso->border_color.i[2]; in v3d_upload_sampler_state_variant()
610 border.i[1] = cso->border_color.i[1]; in v3d_upload_sampler_state_variant()
611 border.i[2] = cso->border_color.i[0]; in v3d_upload_sampler_state_variant()
612 border.i[3] = cso->border_color.i[3]; in v3d_upload_sampler_state_variant()
621 border.i[0] = cso->border_color.i[3]; in v3d_upload_sampler_state_variant()
630 border.i[0] = cso->border_color.i[0]; in v3d_upload_sampler_state_variant()
631 border.i[1] = cso->border_color.i[3]; in v3d_upload_sampler_state_variant()
637 border = cso->border_color; in v3d_upload_sampler_state_variant()
748 if (cso->border_color.ui[0] == 0 && in v3d_create_sampler_state()
749 cso->border_color.ui[1] == 0 && in v3d_create_sampler_state()
[all …]
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_texture.c190 bcolor32[native + 4] = sampler->border_color.i[j]; in fd_setup_border_colors()
191 bcolor[native + 8] = sampler->border_color.i[j]; in fd_setup_border_colors()
193 bcolor32[native] = fui(sampler->border_color.f[j]); in fd_setup_border_colors()
195 _mesa_float_to_half(sampler->border_color.f[j]); in fd_setup_border_colors()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_sampler.c111 union pipe_color_union tmp = sampler->border_color; in st_convert_sampler()
122 util_format_apply_color_swizzle(&sampler->border_color, in st_convert_sampler()
125 st_translate_color(&sampler->border_color, in st_convert_sampler()
129 st_translate_color(&sampler->border_color, in st_convert_sampler()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_texture.c248 desc->border_red = float_to_ushort(sampler->base.border_color.f[0]); in lima_update_tex_desc()
249 desc->border_green = float_to_ushort(sampler->base.border_color.f[1]); in lima_update_tex_desc()
250 desc->border_blue = float_to_ushort(sampler->base.border_color.f[2]); in lima_update_tex_desc()
251 desc->border_alpha = float_to_ushort(sampler->base.border_color.f[3]); in lima_update_tex_desc()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_texture.c147 so->bcol = (float_to_ubyte(cso->border_color.f[3]) << 24) | in nv30_sampler_state_create()
148 (float_to_ubyte(cso->border_color.f[0]) << 16) | in nv30_sampler_state_create()
149 (float_to_ubyte(cso->border_color.f[1]) << 8) | in nv30_sampler_state_create()
150 (float_to_ubyte(cso->border_color.f[2]) << 0); in nv30_sampler_state_create()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_sampler.c183 COPY_4V(bcolor.value, ps->border_color.f); in define_sampler_state_object()
254 uint32 r = float_to_ubyte(sampler->border_color.f[0]); in svga_create_sampler_state()
255 uint32 g = float_to_ubyte(sampler->border_color.f[1]); in svga_create_sampler_state()
256 uint32 b = float_to_ubyte(sampler->border_color.f[2]); in svga_create_sampler_state()
257 uint32 a = float_to_ubyte(sampler->border_color.f[3]); in svga_create_sampler_state()
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_nir_lower_int_samplers.h42 float border_color[4]; member
Ddxil_nir_lower_int_samplers.c242 const_value[i].f32 = active_state->border_color[swizzle[i]]; in load_bordercolor()
529 nir_ssa_def *border_color = load_bordercolor(b, tex, active_wrap_state, swizzle); in lower_sample_to_txf_for_integer_tex_impl() local
534 return nir_if_phi(b, border_color, sampler_color); in lower_sample_to_txf_for_integer_tex_impl()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_device.c1930 VkClearColorValue border_color = vk_border_color_value(i); in tu_CreateDevice() local
1931 tu6_pack_border_color(&global->bcolor_builtin[i], &border_color, in tu_CreateDevice()
2737 uint32_t border_color = (unsigned) pCreateInfo->borderColor; in tu_init_sampler() local
2741 border_color = BITSET_FFS(device->custom_border_color) - 1; in tu_init_sampler()
2742 assert(border_color < TU_BORDER_COLOR_COUNT); in tu_init_sampler()
2743 BITSET_CLEAR(device->custom_border_color, border_color); in tu_init_sampler()
2759 tu6_pack_border_color(device->global_bo->map + gb_offset(bcolor[border_color]), in tu_init_sampler()
2762 border_color += TU_BORDER_COLOR_BUILTIN; in tu_init_sampler()
2787 sampler->descriptor[2] = A6XX_TEX_SAMP_2_BCOLOR(border_color); in tu_init_sampler()
2837 uint32_t border_color; in tu_DestroySampler() local
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_border_clamp/
DesextcTextureBorderClampSamplingTexture.cpp456 glw::GLfloat border_color[] = { val, val, val, val }; in iterate() local
457 gl.samplerParameterfv(m_sampler_id, m_glExtTokens.TEXTURE_BORDER_COLOR, border_color); in iterate()
463 glw::GLuint border_color[] = { val, val, val, val }; in iterate() local
464 gl.samplerParameterIuiv(m_sampler_id, m_glExtTokens.TEXTURE_BORDER_COLOR, border_color); in iterate()
470 glw::GLint border_color[] = { val, val, val, val }; in iterate() local
471 gl.samplerParameterIiv(m_sampler_id, m_glExtTokens.TEXTURE_BORDER_COLOR, border_color); in iterate()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_cs.c243 VkClearColorValue border_color = in panvk_per_arch() local
259 cfg.border_color_r = border_color.uint32[0]; in panvk_per_arch()
260 cfg.border_color_g = border_color.uint32[1]; in panvk_per_arch()
261 cfg.border_color_b = border_color.uint32[2]; in panvk_per_arch()
262 cfg.border_color_a = border_color.uint32[3]; in panvk_per_arch()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_state.c576 util_format_linear_float_to_srgb_8unorm(cso->border_color.f[0]) << 24; in nv50_sampler_state_create()
578 util_format_linear_float_to_srgb_8unorm(cso->border_color.f[1]) << 12; in nv50_sampler_state_create()
580 util_format_linear_float_to_srgb_8unorm(cso->border_color.f[2]) << 20; in nv50_sampler_state_create()
582 so->tsc[4] = fui(cso->border_color.f[0]); in nv50_sampler_state_create()
583 so->tsc[5] = fui(cso->border_color.f[1]); in nv50_sampler_state_create()
584 so->tsc[6] = fui(cso->border_color.f[2]); in nv50_sampler_state_create()
585 so->tsc[7] = fui(cso->border_color.f[3]); in nv50_sampler_state_create()
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_tex_sample.h124 union pipe_color_union border_color; member
Dsp_tex_sample.c757 return sp_sview->border_color.f; in get_texel_2d()
984 return sp_sview->border_color.f; in get_texel_3d()
1002 return sp_sview->border_color.f; in get_texel_1d_array()
1024 return sp_sview->border_color.f; in get_texel_2d_array()
1100 return sp_sview->border_color.f; in get_texel_cube_array()
3732 sp_sview.border_color.f[c] = CLAMP(sp_samp->base.border_color.f[c], in sp_tgsi_get_samples()
3736 sp_sview.border_color.f[c] = CLAMP(sp_samp->base.border_color.f[c], in sp_tgsi_get_samples()
3739 memcpy(sp_sview.border_color.f, sp_samp->base.border_color.f, in sp_tgsi_get_samples()
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_state.c338 ubyte r = float_to_ubyte(sampler->border_color.f[0]); in i915_create_sampler_state()
339 ubyte g = float_to_ubyte(sampler->border_color.f[1]); in i915_create_sampler_state()
340 ubyte b = float_to_ubyte(sampler->border_color.f[2]); in i915_create_sampler_state()
341 ubyte a = float_to_ubyte(sampler->border_color.f[3]); in i915_create_sampler_state()
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
DShader.cpp493 state.border_color.f[0] = pSamplerDesc->BorderColor[0]; in CreateSampler()
494 state.border_color.f[1] = pSamplerDesc->BorderColor[1]; in CreateSampler()
495 state.border_color.f[2] = pSamplerDesc->BorderColor[2]; in CreateSampler()
496 state.border_color.f[3] = pSamplerDesc->BorderColor[3]; in CreateSampler()
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm_sample.c291 DRAW_LLVM_SAMPLER_MEMBER(border_color, DRAW_JIT_SAMPLER_BORDER_COLOR, FALSE)
408 sampler->dynamic_state.base.border_color = draw_llvm_sampler_border_color; in draw_llvm_sampler_soa_create()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_tex_sample.c251 LP_LLVM_SAMPLER_MEMBER(border_color, LP_JIT_SAMPLER_BORDER_COLOR, FALSE) in LP_LLVM_SAMPLER_MEMBER()
450 sampler->dynamic_state.base.border_color = lp_llvm_sampler_border_color; in lp_llvm_sampler_soa_create()
/third_party/gstreamer/gstplugins_bad/ext/closedcaption/
Dgstcea708decoder.h429 guint8 border_color; member
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_device.c2168 VkClearColorValue border_color = in lvp_CreateSampler() local
2170 STATIC_ASSERT(sizeof(sampler->border_color) == sizeof(border_color)); in lvp_CreateSampler()
2171 memcpy(&sampler->border_color, &border_color, sizeof(border_color)); in lvp_CreateSampler()

123