mesa/src/imagination
Nick Hamilton 3591e2b4cd 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>
(cherry picked from commit b80a5f9b7d)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41269>
2026-04-29 17:54:43 +02:00
..
ci pvr: finalize query_indices array after ending last sub_cmd 2026-04-29 17:54:41 +02:00
common pvr: set has_usc_alu_roundingmode_rne for all B-series Rogue cores 2026-04-14 15:27:46 +02:00
csbgen pvr/csbgen: fix packing multiple addresses 2026-01-28 16:18:00 +01:00
include pvr: Fix the isp samples per tile calculation 2026-02-04 18:39:33 +01:00
pco pco: fix clamping the array index when shaderImageGatherExtended is enabled 2026-04-29 17:54:43 +02:00
vulkan pvr: increase value of maxPerStageDescriptorStorageBuffers 2026-04-29 17:54:43 +02:00
.clang-format pvr: remove unused macros 2025-11-11 10:13:11 +01:00
.dir-locals.el
.editorconfig pvr: Change indentation from tab to spaces for xml files. 2022-08-31 08:26:17 +00:00
meson.build pvr: drop legacy rogue compiler 2025-09-16 18:26:10 +00:00