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

Author: Rob Clark <robdcl...@gmail.com>
Date:   Mon Feb 26 13:04:21 2018 -0500

freedreno/ir3: ignore return jump

I think this should also always only occur at the end of a BB (by
definition), and the BB successor should be the end block.

Signed-off-by: Rob Clark <robdcl...@gmail.com>

---

 src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c 
b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
index 38d9ee8e1f..1c8d836a87 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
@@ -2599,6 +2599,7 @@ emit_jump(struct ir3_context *ctx, nir_jump_instr *jump)
        switch (jump->type) {
        case nir_jump_break:
        case nir_jump_continue:
+       case nir_jump_return:
                /* I *think* we can simply just ignore this, and use the
                 * successor block link to figure out where we need to
                 * jump to for break/continue

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to