mesa/src/imagination
Nick Hamilton 28f3e82f2d pco: Fix for atomic operations on an image buffer
Within the driver buffers are treated as 2D as sampling them as 1D
will run into HW restrictions on max size.

The compiler does the same however for atomic image ops the address
is manually calculated and doing this via the 2D path leads to
incorrect offsets.

The fix is to treat buffers as 1D for atomic ops which calculates
the correct offsets for the operations.

Fix deqp:
dEQP-VK.image.atomic_operations.add.buffer.*
dEQP-VK.image.atomic_operations.and.buffer.*
dEQP-VK.image.atomic_operations.compare_exchange.buffer.*
dEQP-VK.image.atomic_operations.dec.buffer.*
dEQP-VK.image.atomic_operations.exchange.buffer.*
dEQP-VK.image.atomic_operations.inc.buffer.*
dEQP-VK.image.atomic_operations.max.buffer.*
dEQP-VK.image.atomic_operations.min.buffer.*
dEQP-VK.image.atomic_operations.or.buffer.*
dEQP-VK.image.atomic_operations.sub.buffer.*
dEQP-VK.image.atomic_operations.xor.buffer.*

Fixes: 6dc5e1e109 ("pco: fully support Vulkan 1.2 image atomics")

Signed-off-by: Nick Hamilton <nick.hamilton@imgtec.com>
Reviewed-by: Simon Perretta <simon.perretta@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39521>
(cherry picked from commit 079377c767)
2026-01-28 16:18:00 +01:00
..
ci pco: Fix for atomic operations on an image buffer 2026-01-28 16:18:00 +01:00
common pvr: disable has_gs_rta_support for ge7800 as well 2025-12-11 18:52:36 +00:00
csbgen pvr: store has_pbe_stride_align_1pixel in pvr_device_features 2025-11-17 16:04:31 +00:00
include pvr: Add calculation for spill/scratch buffers 2026-01-15 20:56:37 +00:00
pco pco: Fix for atomic operations on an image buffer 2026-01-28 16:18:00 +01:00
vulkan pvr: Temporarily disable the buffer device address extension 2026-01-28 16:17:58 +01: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