mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
gallivm/sample: fix texel type for stencil 8-bit
This has to be unsigned, so clamping works properly for border colors. Fixes dEQP-GLES31.functional.texture.border_clamp.range_clamp.nearest_uint_stencil Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5379>
This commit is contained in:
parent
47c2318063
commit
30f94b3e7d
1 changed files with 1 additions and 1 deletions
|
|
@ -2910,7 +2910,7 @@ lp_build_sample_soa_code(struct gallivm_state *gallivm,
|
|||
else if (util_format_has_stencil(bld.format_desc) &&
|
||||
!util_format_has_depth(bld.format_desc)) {
|
||||
/* for stencil only formats, sample stencil (uint) */
|
||||
bld.texel_type = lp_type_int_vec(type.width, type.width * type.length);
|
||||
bld.texel_type = lp_type_uint_vec(type.width, type.width * type.length);
|
||||
}
|
||||
|
||||
if (!static_texture_state->level_zero_only ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue