From 0209311c6e8aaed075f6f519706122087e6c33eb Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Wed, 6 Oct 2021 12:55:23 +0200 Subject: [PATCH] ir3: Use source in ir3_output_conv_src_type() This was incorrectly converted when splitting the regs array. Noticed by inspection. Fixes: d3e08327cf8 ("ir3/core: Switch to srcs/dsts arrays") Part-of: --- src/freedreno/ir3/ir3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h index b767fa14f0b..722c4d874a6 100644 --- a/src/freedreno/ir3/ir3.h +++ b/src/freedreno/ir3/ir3.h @@ -1443,7 +1443,7 @@ ir3_output_conv_src_type(struct ir3_instruction *instr, type_t base_type) return TYPE_F32; default: - return (instr->dsts[1]->flags & IR3_REG_HALF) ? half_type(base_type) + return (instr->srcs[0]->flags & IR3_REG_HALF) ? half_type(base_type) : full_type(base_type); } }