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@google.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5779>
This commit is contained in:
Chris Forbes
2020-07-04 15:26:42 -07:00
committed by Marge Bot
parent 7682c887b3
commit f6aa0719cf
+3
View File
@@ -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: