Module: Mesa
Branch: master
Commit: 658f1f6003e8adc6129370e8ed7582fdbdd31291
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=658f1f6003e8adc6129370e8ed7582fdbdd31291

Author: Rob Clark <[email protected]>
Date:   Wed Jun 13 10:50:37 2018 -0400

freedreno/ir3: fix missing recursion into block condition

Fixes a problem seen with 
dEQP-GLES31.functional.ssbo.layout.single_basic_array.shared.row_major_mat4

Signed-off-by: Rob Clark <[email protected]>

---

 src/gallium/drivers/freedreno/ir3/ir3_group.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/drivers/freedreno/ir3/ir3_group.c 
b/src/gallium/drivers/freedreno/ir3/ir3_group.c
index fecb89ff34..c85903409a 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_group.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_group.c
@@ -263,6 +263,10 @@ find_neighbors(struct ir3 *ir)
                        struct ir3_instruction *instr = block->keeps[i];
                        instr_find_neighbors(instr);
                }
+
+               /* We also need to account for if-condition: */
+               if (block->condition)
+                       instr_find_neighbors(block->condition);
        }
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to