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:
parent
641a12aa29
commit
8564a4c584
|
@ -1681,7 +1681,7 @@ insert_traversal(struct radv_device *device, const VkRayTracingPipelineCreateInf
|
||||||
{
|
{
|
||||||
/* box */
|
/* 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_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)));
|
nir_push_if(b, nir_ine(b, new_node, nir_imm_int(b, 0xffffffff)));
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue