Mesa (master): bifrost: Add support for nir_op_uge

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 28 02:16:47 UTC 2020


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

Author: Chris Forbes <chrisforbes at google.com>
Date:   Sun Jul 26 12:41:17 2020 -0700

bifrost: Add support for nir_op_uge

Signed-off-by: Chris Forbes <chrisforbes at google.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6091>

---

 src/panfrost/bifrost/bifrost_compile.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c
index 3973892d91a..566c0e59881 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -527,6 +527,7 @@ bi_class_for_nir_alu(nir_op op)
         BI_CASE_CMP(nir_op_ige)
         BI_CASE_CMP(nir_op_ieq)
         BI_CASE_CMP(nir_op_ine)
+        BI_CASE_CMP(nir_op_uge)
                 return BI_CMP;
 
         case nir_op_b8csel:
@@ -618,6 +619,7 @@ bi_cond_for_nir(nir_op op, bool soft)
 
         BI_CASE_CMP(nir_op_fge)
         BI_CASE_CMP(nir_op_ige)
+        BI_CASE_CMP(nir_op_uge)
                 return BI_COND_GE;
 
         BI_CASE_CMP(nir_op_feq)
@@ -838,6 +840,7 @@ emit_alu(bi_context *ctx, nir_alu_instr *instr)
         BI_CASE_CMP(nir_op_ieq)
         BI_CASE_CMP(nir_op_fne)
         BI_CASE_CMP(nir_op_ine)
+        BI_CASE_CMP(nir_op_uge)
                 alu.cond = bi_cond_for_nir(instr->op, false);
                 break;
         case nir_op_fround_even:



More information about the mesa-commit mailing list