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

Author: Boris Brezillon <[email protected]>
Date:   Thu Nov 12 19:20:28 2020 +0100

pan/bi: Set roundmode to RTZ for f2u operations

Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7636>

---

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

diff --git a/src/panfrost/bifrost/bifrost_compile.c 
b/src/panfrost/bifrost/bifrost_compile.c
index e088319ae1c..c4604855da4 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -1320,6 +1320,7 @@ emit_alu(bi_context *ctx, nir_alu_instr *instr)
                 alu.src_types[2] = nir_type_uint8;
                 break;
         case nir_op_f2i32:
+        case nir_op_f2u32:
                 alu.roundmode = BIFROST_RTZ;
                 break;
 

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

Reply via email to