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); } }