mesa/src
Nick Hamilton 079377c767
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
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>
2026-01-28 08:54:28 +00:00
..
amd aco: allow v_cmpx with DPP 2026-01-27 20:42:51 +00:00
android_stub android_stub: fix missing prototypes issues 2025-12-02 20:03:02 +00:00
asahi hk: enable VK_EXT_present_timing 2026-01-27 11:09:51 +00:00
broadcom broadcom/ci: remove duplicate entries 2026-01-23 10:44:30 +00:00
c11 c11/threads: fix build on c23 2025-11-10 07:01:50 +10:00
compiler spirv: assert fp_math_ctrl was reset after use 2026-01-27 23:01:44 +00:00
drm-shim drm-shim: handle DRM_CAP_ADDFB2_MODIFIERS 2025-11-24 12:34:08 +00:00
egl egl/surfaceless,device: Support RGB[A]16_UNORM formats for pbuffers. 2026-01-21 12:29:03 +00:00
etnaviv etnaviv: hwdb: Add BLT_64BPP_MASKED_CLEAR_FIX cap 2026-01-27 00:57:26 +00:00
freedreno ir3: Fix barrier error case calculation 2026-01-27 18:15:06 +00:00
gallium etnaviv: Emit alpha_to_coverage dither table only when needed 2026-01-27 21:14:33 +00:00
gbm gbm: Make documentation for gbm_bo_map more explicit 2025-12-29 10:05:38 +00:00
getopt
gfxstream gfxstream: fix build after vk.xml update 2026-01-26 18:25:51 +00:00
glx driconf: add a way to override GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 2025-12-17 23:35:24 +00:00
gtest
imagination pco: Fix for atomic operations on an image buffer 2026-01-28 08:54:28 +00:00
imgui imgui: Silence build warnings for imgui 2025-09-16 06:16:19 +00:00
intel brw: fix local_invocation_index with quad derivaties on mesh/task shaders 2026-01-27 22:28:19 +00:00
kosmickrisp kk: Remove primitive type from pipeline and rely on dynamic one 2026-01-27 10:52:09 +00:00
loader loader: fix UB in wayland helper code. 2026-01-03 07:56:38 +00:00
mesa gallium: Add pipe cap for masked clears and support stencil masking 2026-01-27 00:57:26 +00:00
microsoft vk: descriptors: sort bindings along with flags 2026-01-20 15:55:47 +00:00
nouveau nvk: Disable large pages for now 2026-01-27 17:58:40 +00:00
panfrost Revert "panvk: advertise VK_EXT_primitives_generated_query on v10+" 2026-01-27 23:34:19 +00:00
poly panvk/csf: implement VK_EXT_primitives_generated_query primitive restart 2026-01-21 09:03:34 +00:00
tool pps/meson: minor refactor for pps_deps 2025-11-08 18:39:00 -08:00
util pvr: add basic support for shader statistics framework 2026-01-27 16:58:30 +00:00
virtio venus: refactor Android ANB tracking to avoid confusions with WSI 2026-01-21 23:15:42 +00:00
vulkan driconf: LTO disable 2026-01-27 14:57:20 +00:00
x11 treewide: strip unneeded inc_gallium inc_gallium_aux 2025-11-13 22:01:43 +00:00
.clang-format util: Add sparse bitset data structure 2025-11-06 21:34:33 +00:00
meson.build kk: Add KosmicKrisp 2025-10-20 17:46:38 +00:00