panfrost: Fix outmods on int to float conversions
authorItalo Nicola <italonicola@collabora.com>
Mon, 13 Jul 2020 16:19:08 +0000 (16:19 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jul 2020 20:38:03 +0000 (20:38 +0000)
No shader-db changes (Alyssa).

Signed-off-by: Italo Nicola <italonicola@collabora.com>
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5883>

src/panfrost/midgard/midgard_compile.c

index 35af805ea19f0a66fdb9730445ca06261295df20..324e627816358769946fdc93d7252d917fb25274 100644 (file)
@@ -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);