Mesa (master): bifrost: Set RTZ rounding mode for f2i conversion
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 6 23:46:10 UTC 2020
Module: Mesa
Branch: master
Commit: f6aa0719cfaf10299d2c5112ddfbee91b4b732a9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f6aa0719cfaf10299d2c5112ddfbee91b4b732a9
Author: Chris Forbes <chrisforbes at google.com>
Date: Sat Jul 4 15:26:42 2020 -0700
bifrost: Set RTZ rounding mode for f2i conversion
Fixes dEQP-GLES2.functional.shaders.conversions.scalar_to_scalar.float_to_int_fragment
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/5779>
---
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 adaf6fa3ea8..bee11a440bb 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -843,6 +843,9 @@ emit_alu(bi_context *ctx, nir_alu_instr *instr)
case nir_op_ixor:
alu.op.bitwise = BI_BITWISE_XOR;
break;
+ case nir_op_f2i32:
+ alu.roundmode = BIFROST_RTZ;
+ break;
case nir_op_f2f16:
case nir_op_i2i16:
More information about the mesa-commit
mailing list