ir3: Use source in ir3_output_conv_src_type()

This was incorrectly converted when splitting the regs array. Noticed by
inspection.

Fixes: d3e08327cf ("ir3/core: Switch to srcs/dsts arrays")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13220>
This commit is contained in:
Connor Abbott 2021-10-06 12:55:23 +02:00 committed by Marge Bot
parent f1c322c269
commit 0209311c6e
1 changed files with 1 additions and 1 deletions

View File

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