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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user