diff options
author | Chris Forbes <[email protected]> | 2020-07-04 15:26:42 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-06 23:17:16 +0000 |
commit | f6aa0719cfaf10299d2c5112ddfbee91b4b732a9 (patch) | |
tree | 6869cc6f4f88f50761f86e577cd8bf5ac0932525 /src/panfrost/bifrost | |
parent | 7682c887b3258813733b9b82c823afe60cb99914 (diff) |
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 <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5779>
Diffstat (limited to 'src/panfrost/bifrost')
-rw-r--r-- | src/panfrost/bifrost/bifrost_compile.c | 3 |
1 files changed, 3 insertions, 0 deletions
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: |