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:
@@ -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)));
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user