radv/rt: place any-hit scratch vars after intersection scratch vars
authorDaniel Schürmann <daniel@schuermann.dev>
Sun, 12 Mar 2023 16:14:01 +0000 (17:14 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 13 Mar 2023 11:45:26 +0000 (11:45 +0000)
commit481f78ab93e2f2169c53a7c8494b488d45b60def
tree1248bbfe9708836dc9af64cddd4c223dbae3c1de
parent48ff68820e83565154d8cfb86587c0134f0deb98
radv/rt: place any-hit scratch vars after intersection scratch vars

If both, any-hit and intersection shader, use scratch vars,
it could happen that they end up in the same location and
overwrite each other.
Found by inspection.

Fixes: c3d82a962217def9b9f7e1f4c5ce0a450b97e9c7 ('radv: Add pass to lower anyhit shader into an intersection shader.')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21863>
src/amd/vulkan/radv_rt_shader.c