summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-26 18:50:41 +0200
committerGitHub <noreply@github.com>2020-05-26 18:50:41 +0200
commit623d9c47a2d1a5b32ad67d3e1d86baf9d10851ef (patch)
treeb18ce78e109861765433734498a42b69e66f6fcb /src/video_core
parentMerge pull request #3978 from ReinUsesLisp/write-rz (diff)
parentshader/memory: Implement non-addition operations in RED (diff)
downloadyuzu-623d9c47a2d1a5b32ad67d3e1d86baf9d10851ef.tar
yuzu-623d9c47a2d1a5b32ad67d3e1d86baf9d10851ef.tar.gz
yuzu-623d9c47a2d1a5b32ad67d3e1d86baf9d10851ef.tar.bz2
yuzu-623d9c47a2d1a5b32ad67d3e1d86baf9d10851ef.tar.lz
yuzu-623d9c47a2d1a5b32ad67d3e1d86baf9d10851ef.tar.xz
yuzu-623d9c47a2d1a5b32ad67d3e1d86baf9d10851ef.tar.zst
yuzu-623d9c47a2d1a5b32ad67d3e1d86baf9d10851ef.zip
Diffstat (limited to 'src/video_core')
-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: {