mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
aco: fix WaR check for >64-bit FLAT/GLOBAL instructions
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: 5986e0019 ('aco: improve WAR hazard workaround with >64bit stores')
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3541>
This commit is contained in:
parent
8784062abb
commit
e6c90e4af9
1 changed files with 2 additions and 2 deletions
|
|
@ -333,8 +333,8 @@ int handle_instruction_gfx8_9(NOP_ctx_gfx8_9& ctx, aco_ptr<Instruction>& instr,
|
|||
pred->operands.size() == 3 &&
|
||||
pred->operands[2].size() > 2;
|
||||
if (consider_buf || consider_mimg || consider_flat) {
|
||||
PhysReg wrdata = pred->operands[3].physReg();
|
||||
unsigned size = pred->operands[3].size();
|
||||
PhysReg wrdata = pred->operands[consider_flat ? 2 : 3].physReg();
|
||||
unsigned size = pred->operands[consider_flat ? 2 : 3].size();
|
||||
assert(wrdata >= 256);
|
||||
for (const Definition& def : instr->definitions) {
|
||||
if (regs_intersect(def.physReg(), def.size(), wrdata, size))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue