mesa/src/amd
kingstom.chen 5a7f4c62d8 radv/rt: only run move_rt_instructions() for CPS shaders
move_rt_instructions() only makes sense for CPS recursive shaders, where
later rt_trace_ray calls can overwrite the current shader's RT system
values.

Running it on the function-call path can hoist load_hit_attrib_amd
above merged intersection writes, which corrupts any-hit
hitAttributeEXT. Move the pass into the existing CPS-only
non-intersection branch before nir_lower_shader_calls().

Fixes: c5d796c902 ("radv/rt: Use function call structure in NIR lowering")
Closes: #15074

Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40531>
2026-03-23 11:24:07 +00:00
..
addrlib amd/addrlib: Add more GFX1013 GPUs 2026-03-16 09:40:41 +00:00
ci radv/ci: update restricted trace checksum 2026-03-19 07:41:30 +00:00
common ac/cmdbuf: add an assertion for COPY_DATA+PFP with registers 2026-03-23 08:40:22 +00:00
compiler aco: drop optimizer peephole TODO comment 2026-03-23 11:03:59 +00:00
drm-shim amd/drm-shim: enable conformant_trunc_coord for navi31 2026-03-17 10:27:07 +00:00
gmlib meson: Relax -Wmaybe-uninitialized errors 2025-09-16 06:16:20 +00:00
lanczoslib meson: Relax -Wmaybe-uninitialized errors 2025-09-16 06:16:20 +00:00
llvm nir: change export_amd intrinsics to use target instead of base 2026-03-23 06:10:49 +00:00
packets amd: generate a packet parser/printer automatically from packet definitions 2026-03-11 18:54:20 +00:00
registers amd: Rename GFX1103_R1/R2 to PHOENIX/2 2024-11-20 02:14:40 +00:00
vpelib amd/vpelib: Apply external CSC 2026-03-04 13:17:26 +08:00
vulkan radv/rt: only run move_rt_instructions() for CPS shaders 2026-03-23 11:24:07 +00:00
meson.build radv/tests: require drm-shim and use it instead of RADV_FORCE_FAMILY 2025-11-19 07:11:05 +00:00