mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 12:50:10 +01:00
nvc0/ir: add missing emission of locked load predicate
Like unlocked store on shared memory, locked store can fail and the second dest which is a predicate must be emitted. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
This commit is contained in:
parent
9f0d059d4b
commit
84b9b8f0a3
1 changed files with 7 additions and 0 deletions
|
|
@ -1852,6 +1852,13 @@ CodeEmitterNVC0::emitLOAD(const Instruction *i)
|
|||
}
|
||||
code[1] = opc;
|
||||
|
||||
if (i->src(0).getFile() == FILE_MEMORY_SHARED) {
|
||||
if (i->subOp == NV50_IR_SUBOP_LOAD_LOCKED) {
|
||||
assert(i->defExists(1));
|
||||
defId(i->def(1), 32 + 18);
|
||||
}
|
||||
}
|
||||
|
||||
defId(i->def(0), 14);
|
||||
|
||||
setAddressByFile(i->src(0));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue