From: Italo Nicola Date: Mon, 13 Jul 2020 16:19:08 +0000 (+0000) Subject: panfrost: Fix outmods on int to float conversions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2096903a05b835d5cd5982b741ba0d28b6ede632;p=mesa.git 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: --- 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);