mesa/src/imagination
Nick Hamilton b80a5f9b7d pco: fix clamping the array index when shaderImageGatherExtended is enabled
The array index value is a signed integer but the compiler was using
the unsigned version of the clamp helper function meaning the value
was not been clamped to 0 when its value was < 0.

Fix the following deqp test cases when shaderImageGatherExtended is enabled
dEQP-VK.glsl.texture_gather.basic.2d_array.*
dEQP-VK.glsl.texture_gather.offset.*.2d_array.*
dEQP-VK.glsl.texture_gather.offset_dynamic.*.2d_array.*
dEQP-VK.glsl.texture_gather.offsets.*.2d_array.*

Fixes: 854563f0f8 ("pco: fully switch over to common smp emission code")
Signed-off-by: Nick Hamilton <nick.hamilton@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40687>
2026-04-28 12:03:51 +01:00
..
ci pvr: finalize query_indices array after ending last sub_cmd 2026-04-15 11:03:05 +00:00
common pvr: re-enable wideLines 2026-04-14 15:30:57 +01:00
csbgen pvr: add basic volcanic hw-definitions 2026-02-13 09:28:56 +00:00
drm-shim pvr/drm-shim: avoid trying a random bvnc by default 2026-02-09 09:23:42 +00:00
include pco: Use vertex input registers in register allocation 2026-02-24 16:27:45 +00:00
pco pco: fix clamping the array index when shaderImageGatherExtended is enabled 2026-04-28 12:03:51 +01:00
vulkan pvr: increase value of maxPerStageDescriptorStorageBuffers 2026-04-28 08:36:48 +00:00
.clang-format pco: Use vertex input registers in register allocation 2026-02-24 16:27:45 +00:00
.dir-locals.el
.editorconfig
meson.build pvr: add support for drm-shim 2026-02-02 14:25:18 +00:00