radv: fix raytracing with wave32

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5452
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14011>
This commit is contained in:
Rhys Perry 2021-12-02 16:08:47 +00:00 committed by Marge Bot
parent 61e3f549c5
commit 2298a96f9f
1 changed files with 1 additions and 1 deletions

View File

@ -1793,7 +1793,7 @@ insert_traversal(struct radv_device *device, const VkRayTracingPipelineCreateInf
nir_ssa_def *stack_entry_stride_def = nir_imm_int(b, stack_entry_stride);
nir_ssa_def *stack_base =
nir_iadd(b, nir_imm_int(b, b->shader->info.shared_size),
nir_imul(b, nir_load_subgroup_invocation(b), nir_imm_int(b, stack_entry_size)));
nir_imul(b, nir_load_local_invocation_index(b), nir_imm_int(b, stack_entry_size)));
/*
* A top-level AS can contain 2^24 children and a bottom-level AS can contain 2^24 triangles. At