aco: ensure readfirstlane subdword operands are always dword aligned
Cc: 20.1 <mesa-stable@lists.freedesktop.org> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6024>
This commit is contained in:
committed by
Marge Bot
parent
4c89bfc4ec
commit
1b3be07b5f
@@ -483,6 +483,8 @@ bool validate_subdword_operand(chip_class chip, const aco_ptr<Instruction>& inst
|
||||
Operand op = instr->operands[index];
|
||||
unsigned byte = op.physReg().byte();
|
||||
|
||||
if (instr->opcode == aco_opcode::p_as_uniform)
|
||||
return byte == 0;
|
||||
if (instr->format == Format::PSEUDO && chip >= GFX8)
|
||||
return true;
|
||||
if (instr->isSDWA() && (static_cast<SDWA_instruction *>(instr.get())->sel[index] & sdwa_asuint) == (sdwa_isra | op.bytes()))
|
||||
|
||||
Reference in New Issue
Block a user