pan/bi: Set roundmode to RTZ for f2u operations

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7636>
This commit is contained in:
Boris Brezillon 2020-11-12 19:20:28 +01:00
parent 00a6a9bdf8
commit 058bcf4406

View file

@ -1320,6 +1320,7 @@ emit_alu(bi_context *ctx, nir_alu_instr *instr)
alu.src_types[2] = nir_type_uint8;
break;
case nir_op_f2i32:
case nir_op_f2u32:
alu.roundmode = BIFROST_RTZ;
break;