Unverified Commit b6723664 authored by Joshua Ashton's avatar Joshua Ashton 🐸
Browse files

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's avatarJoshua Ashton <joshua@froggi.es>
parent 67866410
Pipeline #406451 waiting for manual action with stages
......@@ -1957,7 +1957,7 @@ insert_traversal(struct radv_device *device, const VkRayTracingPipelineCreateInf
nir_load_var(b, trav_vars.dir), nir_load_var(b, trav_vars.inv_dir));
}
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)));
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment