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:
Rhys Perry
2024-06-06 16:53:09 +01:00
committed by Marge Bot
parent f842bd81ca
commit 5e1d3f571d

View File

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