From: Chris Forbes Date: Sat, 4 Jul 2020 22:26:42 +0000 (-0700) Subject: bifrost: Set RTZ rounding mode for f2i conversion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6aa0719cfaf10299d2c5112ddfbee91b4b732a9;p=mesa.git 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 Reviewed-by: Alyssa Rosenzweig Part-of: --- 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: