From 2096903a05b835d5cd5982b741ba0d28b6ede632 Mon Sep 17 00:00:00 2001 From: Italo Nicola Date: Mon, 13 Jul 2020 16:19:08 +0000 Subject: [PATCH] panfrost: Fix outmods on int to float conversions No shader-db changes (Alyssa). Signed-off-by: Italo Nicola Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/midgard_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 35af805ea19..324e6278163 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -1101,7 +1101,7 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr) * fsat alone. */ - if (!is_int && !(opcode_props & OP_TYPE_CONVERT)) { + if (!midgard_is_integer_out_op(op)) { bool fpos = mir_accept_dest_mod(ctx, &dest, nir_op_fclamp_pos); bool fsat = mir_accept_dest_mod(ctx, &dest, nir_op_fsat); bool ssat = mir_accept_dest_mod(ctx, &dest, nir_op_fsat_signed); -- 2.30.2