summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-05-15 02:28:52 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-05-22 04:19:46 +0200
commit103809a0ca47f9bdfbb4de12e3ac5c356870b664 (patch)
tree948718655daa5f36684ecf648f799e6083411708 /src/video_core/shader
parentMerge pull request #3926 from ogniK5377/keyboard-states (diff)
downloadyuzu-103809a0ca47f9bdfbb4de12e3ac5c356870b664.tar
yuzu-103809a0ca47f9bdfbb4de12e3ac5c356870b664.tar.gz
yuzu-103809a0ca47f9bdfbb4de12e3ac5c356870b664.tar.bz2
yuzu-103809a0ca47f9bdfbb4de12e3ac5c356870b664.tar.lz
yuzu-103809a0ca47f9bdfbb4de12e3ac5c356870b664.tar.xz
yuzu-103809a0ca47f9bdfbb4de12e3ac5c356870b664.tar.zst
yuzu-103809a0ca47f9bdfbb4de12e3ac5c356870b664.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/decode/memory.cpp3
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) {
}
case OpCode::Id::RED: {
UNIMPLEMENTED_IF_MSG(instr.red.type != GlobalAtomicType::U32);
- UNIMPLEMENTED_IF_MSG(instr.red.operation != AtomicOp::Add);
const auto [real_address, base_address, descriptor] =
TrackGlobalMemory(bb, instr, true, true);
if (!real_address || !base_address) {
@@ -396,7 +395,7 @@ u32 ShaderIR::DecodeMemory(NodeBlock& bb, u32 pc) {
}
Node gmem = MakeNode<GmemNode>(real_address, base_address, descriptor);
Node value = GetRegister(instr.gpr0);
- bb.push_back(Operation(OperationCode::ReduceIAdd, move(gmem), move(value)));
+ bb.push_back(Operation(GetAtomOperation(instr.red.operation), move(gmem), move(value)));
break;
}
case OpCode::Id::ATOM: {