radv: Push box traversal results onto stack in correct order

Currently, it's pushing from lowest distance to highest distance, so when these are popped off the stack, we start at the highest distance to lowest.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
Reviewed-by: Bas Nieuwenhhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12960>
This commit is contained in:
Joshua Ashton 2021-09-21 16:05:53 +01:00 committed by Marge Bot
parent 641a12aa29
commit 8564a4c584
1 changed files with 1 additions and 1 deletions

View File

@ -1681,7 +1681,7 @@ insert_traversal(struct radv_device *device, const VkRayTracingPipelineCreateInf
{
/* box */
for (unsigned i = 0; i < 4; ++i) {
for (unsigned i = 4; i-- > 0; ) {
nir_ssa_def *new_node = nir_vector_extract(b, result, nir_imm_int(b, i));
nir_push_if(b, nir_ine(b, new_node, nir_imm_int(b, 0xffffffff)));
{