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

Author: Jason Ekstrand <[email protected]>
Date:   Sat Mar 28 11:23:52 2020 -0500

nir: Copy propagate through vec8s and vec16s

Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4365>

---

 src/compiler/nir/nir_opt_copy_propagate.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/compiler/nir/nir_opt_copy_propagate.c 
b/src/compiler/nir/nir_opt_copy_propagate.c
index 00c78f38451..4a98a2812c3 100644
--- a/src/compiler/nir/nir_opt_copy_propagate.c
+++ b/src/compiler/nir/nir_opt_copy_propagate.c
@@ -61,9 +61,8 @@ static bool is_vec(nir_alu_instr *instr)
          return false;
    }
 
-   return instr->op == nir_op_vec2 ||
-          instr->op == nir_op_vec3 ||
-          instr->op == nir_op_vec4;
+   assert(instr->dest.dest.is_ssa);
+   return nir_op_is_vec(instr->op);
 }
 
 static bool

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

Reply via email to