Home
last modified time | relevance | path

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

1234

/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_cs.c66 uint32_t border_color[4]) in panvk_translate_sampler_border_color()
74 border_color[0] = border_color[1] = border_color[2] = fui(0.0); in panvk_translate_sampler_border_color()
75 border_color[3] = in panvk_translate_sampler_border_color()
81 border_color[0] = border_color[1] = border_color[2] = 0; in panvk_translate_sampler_border_color()
82 border_color[3] = in panvk_translate_sampler_border_color()
87 border_color[0] = border_color[1] = border_color[2] = border_color[3] = fui(1.0); in panvk_translate_sampler_border_color()
90 border_color[0] = border_color[1] = border_color[2] = border_color[3] = UINT_MAX; in panvk_translate_sampler_border_color()
94 memcpy(border_color, pBorderColor->customBorderColor.int32, sizeof(uint32_t) * 4); in panvk_translate_sampler_border_color()
283 uint32_t border_color[4]; in panvk_per_arch() local
285 panvk_translate_sampler_border_color(pCreateInfo, border_color); in panvk_per_arch()
[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/freedreno/
Dfreedreno_texture.c172 bcolor32[desc->swizzle[j] + 4] = sampler->border_color.i[j]; in fd_setup_border_colors()
173 bcolor[desc->swizzle[j] + 8] = sampler->border_color.i[j]; in fd_setup_border_colors()
175 bcolor32[desc->swizzle[j]] = fui(sampler->border_color.f[j]); in fd_setup_border_colors()
177 _mesa_float_to_half(sampler->border_color.f[j]); in fd_setup_border_colors()
/third_party/mesa3d/src/mesa/main/
Dsamplerobj.c131 sampObj->Attrib.state.border_color.f[0] = 0; in _mesa_init_sampler_object()
132 sampObj->Attrib.state.border_color.f[1] = 0; in _mesa_init_sampler_object()
133 sampObj->Attrib.state.border_color.f[2] = 0; in _mesa_init_sampler_object()
134 sampObj->Attrib.state.border_color.f[3] = 0; in _mesa_init_sampler_object()
714 memcpy(samp->Attrib.state.border_color.f, params, 4 * sizeof(float)); in set_sampler_border_colorf()
726 memcpy(samp->Attrib.state.border_color.i, params, 4 * sizeof(float)); in set_sampler_border_colori()
738 memcpy(samp->Attrib.state.border_color.ui, params, 4 * sizeof(float)); in set_sampler_border_colorui()
1556 params[0] = FLOAT_TO_INT(sampObj->Attrib.state.border_color.f[0]); in _mesa_GetSamplerParameteriv()
1557 params[1] = FLOAT_TO_INT(sampObj->Attrib.state.border_color.f[1]); in _mesa_GetSamplerParameteriv()
1558 params[2] = FLOAT_TO_INT(sampObj->Attrib.state.border_color.f[2]); in _mesa_GetSamplerParameteriv()
[all …]
Dsamplerobj.h224 samp->Attrib.IsBorderColorNonZero = samp->Attrib.state.border_color.ui[0] || in _mesa_update_is_border_color_nonzero()
225 samp->Attrib.state.border_color.ui[1] || in _mesa_update_is_border_color_nonzero()
226 samp->Attrib.state.border_color.ui[2] || in _mesa_update_is_border_color_nonzero()
227 samp->Attrib.state.border_color.ui[3]; in _mesa_update_is_border_color_nonzero()
Dtexturebindless.c513 size_t size = sizeof(samp->Attrib.state.border_color.ui); in is_sampler_border_color_valid()
526 if (!memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[0], size) || in is_sampler_border_color_valid()
527 !memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[1], size) || in is_sampler_border_color_valid()
528 !memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[2], size) || in is_sampler_border_color_valid()
529 !memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[3], size)) in is_sampler_border_color_valid()
532 if (!memcmp(samp->Attrib.state.border_color.ui, valid_integer_border_colors[0], size) || in is_sampler_border_color_valid()
533 !memcmp(samp->Attrib.state.border_color.ui, valid_integer_border_colors[1], size) || in is_sampler_border_color_valid()
534 !memcmp(samp->Attrib.state.border_color.ui, valid_integer_border_colors[2], size) || in is_sampler_border_color_valid()
535 !memcmp(samp->Attrib.state.border_color.ui, valid_integer_border_colors[3], size)) in is_sampler_border_color_valid()
Dtexparam.c820 memcpy(texObj->Sampler.Attrib.state.border_color.f, params, 4 * sizeof(float)); in set_tex_parameterf()
822 texObj->Sampler.Attrib.state.border_color.f[RCOMP] = CLAMP(params[0], 0.0F, 1.0F); in set_tex_parameterf()
823 texObj->Sampler.Attrib.state.border_color.f[GCOMP] = CLAMP(params[1], 0.0F, 1.0F); in set_tex_parameterf()
824 texObj->Sampler.Attrib.state.border_color.f[BCOMP] = CLAMP(params[2], 0.0F, 1.0F); in set_tex_parameterf()
825 texObj->Sampler.Attrib.state.border_color.f[ACOMP] = CLAMP(params[3], 0.0F, 1.0F); in set_tex_parameterf()
1091 COPY_4V(texObj->Sampler.Attrib.state.border_color.i, params); in _mesa_texture_parameterIiv()
1120 COPY_4V(texObj->Sampler.Attrib.state.border_color.ui, params); in _mesa_texture_parameterIuiv()
2231 params[0] = CLAMP(obj->Sampler.Attrib.state.border_color.f[0], 0.0F, 1.0F); in get_tex_parameterfv()
2232 params[1] = CLAMP(obj->Sampler.Attrib.state.border_color.f[1], 0.0F, 1.0F); in get_tex_parameterfv()
2233 params[2] = CLAMP(obj->Sampler.Attrib.state.border_color.f[2], 0.0F, 1.0F); in get_tex_parameterfv()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_sampler.c110 union pipe_color_union tmp = sampler->border_color; in st_convert_sampler()
121 util_format_apply_color_swizzle(&sampler->border_color, in st_convert_sampler()
124 st_translate_color(&sampler->border_color, in st_convert_sampler()
128 st_translate_color(&sampler->border_color, in st_convert_sampler()
/third_party/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv20_state_tex.c216 r = FLOAT_TO_UBYTE(sa->Attrib.state.border_color.f[0]); in nv20_emit_tex_obj()
217 g = FLOAT_TO_UBYTE(sa->Attrib.state.border_color.f[1]); in nv20_emit_tex_obj()
218 b = FLOAT_TO_UBYTE(sa->Attrib.state.border_color.f[2]); in nv20_emit_tex_obj()
219 a = FLOAT_TO_UBYTE(sa->Attrib.state.border_color.f[3]); in nv20_emit_tex_obj()
/third_party/mesa3d/src/mesa/drivers/dri/i915/
Di830_texstate.c305 CLAMPED_FLOAT_TO_UBYTE(border[0], sampler->Attrib.state.border_color.f[0]); in i830_update_tex_unit()
306 CLAMPED_FLOAT_TO_UBYTE(border[1], sampler->Attrib.state.border_color.f[1]); in i830_update_tex_unit()
307 CLAMPED_FLOAT_TO_UBYTE(border[2], sampler->Attrib.state.border_color.f[2]); in i830_update_tex_unit()
308 CLAMPED_FLOAT_TO_UBYTE(border[3], sampler->Attrib.state.border_color.f[3]); in i830_update_tex_unit()
Di915_texstate.c369 CLAMPED_FLOAT_TO_UBYTE(border[0], sampler->Attrib.state.border_color.f[0]); in i915_update_tex_unit()
370 CLAMPED_FLOAT_TO_UBYTE(border[1], sampler->Attrib.state.border_color.f[1]); in i915_update_tex_unit()
371 CLAMPED_FLOAT_TO_UBYTE(border[2], sampler->Attrib.state.border_color.f[2]); in i915_update_tex_unit()
372 CLAMPED_FLOAT_TO_UBYTE(border[3], sampler->Attrib.state.border_color.f[3]); in i915_update_tex_unit()
/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/v3d/
Dv3dx_state.c598 border.i[0] = cso->border_color.i[2]; in v3d_upload_sampler_state_variant()
599 border.i[1] = cso->border_color.i[1]; in v3d_upload_sampler_state_variant()
600 border.i[2] = cso->border_color.i[0]; in v3d_upload_sampler_state_variant()
601 border.i[3] = cso->border_color.i[3]; in v3d_upload_sampler_state_variant()
610 border.i[0] = cso->border_color.i[3]; in v3d_upload_sampler_state_variant()
619 border.i[0] = cso->border_color.i[0]; in v3d_upload_sampler_state_variant()
620 border.i[1] = cso->border_color.i[3]; in v3d_upload_sampler_state_variant()
626 border = cso->border_color; in v3d_upload_sampler_state_variant()
730 (cso->border_color.ui[0] != 0 || in v3d_create_sampler_state()
731 cso->border_color.ui[1] != 0 || in v3d_create_sampler_state()
[all …]
/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/gallium/frontends/lavapipe/
Dlvp_device.c2438 memset(&sampler->border_color, 0, sizeof(union pipe_color_union)); in lvp_CreateSampler()
2441 sampler->border_color.f[0] = sampler->border_color.f[1] = in lvp_CreateSampler()
2442 sampler->border_color.f[2] = 0.0f; in lvp_CreateSampler()
2443 sampler->border_color.f[3] = 1.0f; in lvp_CreateSampler()
2446 sampler->border_color.i[0] = sampler->border_color.i[1] = in lvp_CreateSampler()
2447 sampler->border_color.i[2] = 0; in lvp_CreateSampler()
2448 sampler->border_color.i[3] = 1; in lvp_CreateSampler()
2451 sampler->border_color.f[0] = sampler->border_color.f[1] = in lvp_CreateSampler()
2452 sampler->border_color.f[2] = 1.0f; in lvp_CreateSampler()
2453 sampler->border_color.f[3] = 1.0f; in lvp_CreateSampler()
[all …]
/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/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/gallium/drivers/swr/
Dswr_tex_sample.cpp284 SWR_SAMPLER_MEMBER(border_color, FALSE) in SWR_SAMPLER_MEMBER()
369 sampler->dynamic_state.base.border_color = swr_sampler_border_color; in swr_sampler_soa_create()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_device.c2316 uint32_t border_color = (unsigned) pCreateInfo->borderColor; in tu_init_sampler() local
2320 border_color = BITSET_FFS(device->custom_border_color); in tu_init_sampler()
2321 BITSET_CLEAR(device->custom_border_color, border_color); in tu_init_sampler()
2323 tu6_pack_border_color(device->global_bo.map + gb_offset(bcolor[border_color]), in tu_init_sampler()
2326 border_color += TU_BORDER_COLOR_BUILTIN; in tu_init_sampler()
2351 sampler->descriptor[2] = A6XX_TEX_SAMP_2_BCOLOR(border_color); in tu_init_sampler()
2401 uint32_t border_color; in tu_DestroySampler() local
2406border_color = (sampler->descriptor[2] & A6XX_TEX_SAMP_2_BCOLOR__MASK) >> A6XX_TEX_SAMP_2_BCOLOR__… in tu_DestroySampler()
2407 if (border_color >= TU_BORDER_COLOR_BUILTIN) { in tu_DestroySampler()
2408 border_color -= TU_BORDER_COLOR_BUILTIN; in tu_DestroySampler()
[all …]
/third_party/mesa3d/src/mesa/swrast/
Ds_texfilter.c779 rgba[0] = samp->Attrib.state.border_color.f[0]; in get_border_color()
780 rgba[1] = samp->Attrib.state.border_color.f[1]; in get_border_color()
781 rgba[2] = samp->Attrib.state.border_color.f[2]; in get_border_color()
786 rgba[3] = samp->Attrib.state.border_color.f[3]; in get_border_color()
789 rgba[0] = rgba[1] = rgba[2] = samp->Attrib.state.border_color.f[0]; in get_border_color()
793 rgba[0] = rgba[1] = rgba[2] = samp->Attrib.state.border_color.f[0]; in get_border_color()
794 rgba[3] = samp->Attrib.state.border_color.f[3]; in get_border_color()
797 rgba[0] = rgba[1] = rgba[2] = rgba[3] = samp->Attrib.state.border_color.f[0]; in get_border_color()
800 COPY_4V(rgba, samp->Attrib.state.border_color.f); in get_border_color()
2878 COPY_4V(rgba, samp->Attrib.state.border_color.f); in sample_2d_array_linear()
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/i965/
DgenX_state_upload.c4963 color.ui[0] = sampler->Attrib.state.border_color.ui[0];
4964 color.ui[1] = sampler->Attrib.state.border_color.ui[0];
4965 color.ui[2] = sampler->Attrib.state.border_color.ui[0];
4966 color.ui[3] = sampler->Attrib.state.border_color.ui[0];
4972 color.ui[3] = sampler->Attrib.state.border_color.ui[3];
4975 color.ui[0] = sampler->Attrib.state.border_color.ui[0];
4976 color.ui[1] = sampler->Attrib.state.border_color.ui[0];
4977 color.ui[2] = sampler->Attrib.state.border_color.ui[0];
4978 color.ui[3] = sampler->Attrib.state.border_color.ui[0];
4981 color.ui[0] = sampler->Attrib.state.border_color.ui[0];
[all …]
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_tex_sample.h124 union pipe_color_union border_color; member
/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/mesa/drivers/dri/radeon/
Dradeon_tex.c321 radeonSetTexBorderColor(t, samp->Attrib.state.border_color.f); in radeonTexUpdateParameters()
425 radeonSetTexBorderColor( t, t->base.Sampler.Attrib.state.border_color.f ); in radeonNewTextureObject()

1234