mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-12 14:48:52 +00:00
Implement IMAGE_ATOMIC_SWAP (#2194)
We already handle everything for this opcode in our IMAGE_ATOMIC function, so implementing this is fairly simple. Should improve Wipeout 3.
This commit is contained in:
@@ -107,6 +107,8 @@ void Translator::EmitVectorMemory(const GcnInst& inst) {
|
||||
return IMAGE_GET_RESINFO(inst);
|
||||
|
||||
// Image atomic operations
|
||||
case Opcode::IMAGE_ATOMIC_SWAP:
|
||||
return IMAGE_ATOMIC(AtomicOp::Swap, inst);
|
||||
case Opcode::IMAGE_ATOMIC_ADD:
|
||||
return IMAGE_ATOMIC(AtomicOp::Add, inst);
|
||||
case Opcode::IMAGE_ATOMIC_SMIN:
|
||||
|
||||
Reference in New Issue
Block a user