mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
aco: fix 64-bit p_extract_vector on 32-bit p_create_vector
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
parent
f6f15859de
commit
a400928f4a
1 changed files with 2 additions and 1 deletions
|
|
@ -765,7 +765,8 @@ void label_instruction(opt_ctx &ctx, aco_ptr<Instruction>& instr)
|
|||
if (!ctx.info[instr->operands[0].tempId()].is_vec())
|
||||
break;
|
||||
Instruction* vec = ctx.info[instr->operands[0].tempId()].instr;
|
||||
if (vec->definitions[0].getTemp().size() == vec->operands.size()) { /* TODO: what about 64bit or other combinations? */
|
||||
if (vec->definitions[0].getTemp().size() == vec->operands.size() && /* TODO: what about 64bit or other combinations? */
|
||||
vec->operands[0].size() == instr->definitions[0].size()) {
|
||||
|
||||
/* convert this extract into a mov instruction */
|
||||
Operand vec_op = vec->operands[instr->operands[1].constantValue()];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue