diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/decode/memory.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/memory.cpp b/src/video_core/shader/decode/memory.cpp index 9392f065b..63adbc4a3 100644 --- a/src/video_core/shader/decode/memory.cpp +++ b/src/video_core/shader/decode/memory.cpp | |||
| @@ -387,7 +387,6 @@ u32 ShaderIR::DecodeMemory(NodeBlock& bb, u32 pc) { | |||
| 387 | } | 387 | } |
| 388 | case OpCode::Id::RED: { | 388 | case OpCode::Id::RED: { |
| 389 | UNIMPLEMENTED_IF_MSG(instr.red.type != GlobalAtomicType::U32); | 389 | UNIMPLEMENTED_IF_MSG(instr.red.type != GlobalAtomicType::U32); |
| 390 | UNIMPLEMENTED_IF_MSG(instr.red.operation != AtomicOp::Add); | ||
| 391 | const auto [real_address, base_address, descriptor] = | 390 | const auto [real_address, base_address, descriptor] = |
| 392 | TrackGlobalMemory(bb, instr, true, true); | 391 | TrackGlobalMemory(bb, instr, true, true); |
| 393 | if (!real_address || !base_address) { | 392 | if (!real_address || !base_address) { |
| @@ -396,7 +395,7 @@ u32 ShaderIR::DecodeMemory(NodeBlock& bb, u32 pc) { | |||
| 396 | } | 395 | } |
| 397 | Node gmem = MakeNode<GmemNode>(real_address, base_address, descriptor); | 396 | Node gmem = MakeNode<GmemNode>(real_address, base_address, descriptor); |
| 398 | Node value = GetRegister(instr.gpr0); | 397 | Node value = GetRegister(instr.gpr0); |
| 399 | bb.push_back(Operation(OperationCode::ReduceIAdd, move(gmem), move(value))); | 398 | bb.push_back(Operation(GetAtomOperation(instr.red.operation), move(gmem), move(value))); |
| 400 | break; | 399 | break; |
| 401 | } | 400 | } |
| 402 | case OpCode::Id::ATOM: { | 401 | case OpCode::Id::ATOM: { |