mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
aco: handle undef p_create_vector operands in the optimizer
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4639>
This commit is contained in:
parent
deea4b7c5a
commit
78389f4cbc
1 changed files with 4 additions and 0 deletions
|
|
@ -954,6 +954,8 @@ void label_instruction(opt_ctx &ctx, Block& block, aco_ptr<Instruction>& instr)
|
|||
ctx.info[instr->definitions[i].tempId()].set_constant(vec_op.constantValue());
|
||||
else if (vec_op.size() == 2)
|
||||
ctx.info[instr->definitions[i].tempId()].set_constant_64bit(vec_op.constantValue());
|
||||
} else if (vec_op.isUndefined()) {
|
||||
ctx.info[instr->definitions[i].tempId()].set_undefined();
|
||||
} else {
|
||||
assert(vec_op.isTemp());
|
||||
ctx.info[instr->definitions[i].tempId()].set_temp(vec_op.getTemp());
|
||||
|
|
@ -991,6 +993,8 @@ void label_instruction(opt_ctx &ctx, Block& block, aco_ptr<Instruction>& instr)
|
|||
ctx.info[instr->definitions[0].tempId()].set_constant(op.constantValue());
|
||||
else if (op.size() == 2)
|
||||
ctx.info[instr->definitions[0].tempId()].set_constant_64bit(op.constantValue());
|
||||
} else if (op.isUndefined()) {
|
||||
ctx.info[instr->definitions[0].tempId()].set_undefined();
|
||||
} else {
|
||||
assert(op.isTemp());
|
||||
ctx.info[instr->definitions[0].tempId()].set_temp(op.getTemp());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue