mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 05:58:05 +02:00
nv50/ir/nir: fix global_atomic_comp_swap
Fixes: 20d0ae464c ("nv50/ir: implement global atomics and handle it for nir")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <dev@pmoreau.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6367>
This commit is contained in:
parent
4403176201
commit
b283fb335b
1 changed files with 2 additions and 0 deletions
|
|
@ -2104,6 +2104,8 @@ Converter::visit(nir_intrinsic_instr *insn)
|
|||
Symbol *sym = mkSymbol(FILE_MEMORY_GLOBAL, 0, dType, offset);
|
||||
Instruction *atom =
|
||||
mkOp2(OP_ATOM, dType, newDefs[0], sym, getSrc(&insn->src[1], 0));
|
||||
if (op == nir_intrinsic_global_atomic_comp_swap)
|
||||
atom->setSrc(2, getSrc(&insn->src[2], 0));
|
||||
atom->setIndirect(0, 0, address);
|
||||
atom->subOp = getSubOp(op);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue