mesa/src
Natalie Vock 976efbe12a radv/rt: Fix shared ray query stack on top of application LDS
Since the stack pointer may wrap around the stack size in overflow
cases, traversal logic calculates the real stack pointer with
nir_umod_imm(b, stack, args->stack_entries * args->stack_stride).

For ray queries, "stack" was initialized to
"stack_base + local_invocation_idx * 4". This was completely broken, as
the umod would later delete the stack base completely and overwrite the
start of LDS, which belongs to the apps' shared memory.

Instead, add the stack base as a constant offset in the load/store_stack
callback. (This should also save 1 VALU per ray query)
Also, delete radv_ray_traversal_args::stack_base since it's unused now.

Cc: mesa-stable
(cherry picked from commit b046eaf36d)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40488>
2026-03-17 18:59:17 +01:00
..
amd radv/rt: Fix shared ray query stack on top of application LDS 2026-03-17 18:59:17 +01:00
android_stub android_stub: fix missing prototypes issues 2025-12-02 20:03:02 +00:00
asahi hk: Fix crash in hk_handle_passthrough_gs 2026-02-25 14:22:24 +01:00
broadcom v3d: reject fast TLB blit when RT formats don't match 2026-03-11 23:21:09 +01:00
c11 c11/threads: fix build on c23 2025-11-10 07:01:50 +10:00
compiler mesa/st: fix unlower_io_to_vars to work with mesh shaders 2026-03-17 13:11:18 +01:00
drm-shim drm-shim: handle DRM_CAP_ADDFB2_MODIFIERS 2025-11-24 12:34:08 +00:00
egl wsi/wayland: Use wl_fixes to destroy wl_registry 2026-03-17 12:38:44 +01:00
etnaviv etnaviv/ci: Add gitlab-ci-inc.yml to file list 2026-01-19 20:46:38 +00:00
freedreno freedreno/drm: Fix bo_flush race 2026-03-17 18:58:41 +01:00
gallium r300: pad short vertex shaders to avoid R3xx hangs 2026-03-17 18:59:00 +01:00
gbm gbm: Make documentation for gbm_bo_map more explicit 2025-12-29 10:05:38 +00:00
getopt
gfxstream gfxstream: Add VK_EXT_frame_boundary support 2026-01-20 20:27:10 +00:00
glx glx: guard glx_screen frontend_screen member 2026-03-11 23:21:11 +01:00
gtest
imagination pco: fix a typo in the check for optimization looping 2026-03-11 23:21:11 +01:00
imgui imgui: Silence build warnings for imgui 2025-09-16 06:16:19 +00:00
intel anv: Fix Wa_14021821874, Wa_14018813551, Wa_14026600921 2026-03-11 23:21:12 +01:00
kosmickrisp kk: Fix graphics pipeline serialization 2026-02-25 14:22:22 +01:00
loader loader: fix UB in wayland helper code. 2026-01-03 07:56:38 +00:00
mesa st/glsl_to_nir: update state var locations earlier 2026-03-11 23:21:10 +01:00
microsoft vk: descriptors: sort bindings along with flags 2026-01-20 15:55:47 +00:00
nouveau nvk/mme: Add missing nullcheck in nvk_mme_test_state_state 2026-03-17 18:58:56 +01:00
panfrost panvk/csf: use DEFERRED_FLUSH for fragment job cache flush 2026-03-17 18:58:40 +01: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 driconf: force_vk_vendor on No Man's Sky + NVK 2026-03-11 23:21:11 +01:00
virtio venus: force prime blit on Nvidia GPU 2026-03-17 12:39:24 +01:00
vulkan wsi/wayland: Use wl_fixes to destroy wl_registry 2026-03-17 12:38:44 +01:00
x11 x11: Add helper util to check for xshm support 2026-03-11 23:21:10 +01: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