aco: turn split(vec()) into p_parallelcopy instead of p_create_vector
No fossil-db changes. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29912>
This commit is contained in:
@@ -4448,11 +4448,11 @@ select_instruction(opt_ctx& ctx, aco_ptr<Instruction>& instr)
|
||||
if (op.isTemp())
|
||||
ctx.uses[op.tempId()]++;
|
||||
|
||||
aco_ptr<Instruction> extract{
|
||||
create_instruction(aco_opcode::p_create_vector, Format::PSEUDO, 1, 1)};
|
||||
extract->operands[0] = op;
|
||||
extract->definitions[0] = instr->definitions[idx];
|
||||
instr = std::move(extract);
|
||||
aco_ptr<Instruction> copy{
|
||||
create_instruction(aco_opcode::p_parallelcopy, Format::PSEUDO, 1, 1)};
|
||||
copy->operands[0] = op;
|
||||
copy->definitions[0] = instr->definitions[idx];
|
||||
instr = std::move(copy);
|
||||
|
||||
done = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user