From dcc5562cd5a9734de9d4473e984a1bbc260e1a63 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 14 Aug 2020 08:32:32 -0400 Subject: [PATCH] shader/memory: Amend UNIMPLEMENTED_IF_MSG without a message We need to provide a message for this variant of the macro, so we can simply log out the type being used. --- src/video_core/shader/decode/memory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_core/shader/decode/memory.cpp b/src/video_core/shader/decode/memory.cpp index e4739394d..e2bba88dd 100644 --- a/src/video_core/shader/decode/memory.cpp +++ b/src/video_core/shader/decode/memory.cpp @@ -386,7 +386,8 @@ u32 ShaderIR::DecodeMemory(NodeBlock& bb, u32 pc) { break; } case OpCode::Id::RED: { - UNIMPLEMENTED_IF_MSG(instr.red.type != GlobalAtomicType::U32); + UNIMPLEMENTED_IF_MSG(instr.red.type != GlobalAtomicType::U32, "type={}", + static_cast(instr.red.type.Value())); const auto [real_address, base_address, descriptor] = TrackGlobalMemory(bb, instr, true, true); if (!real_address || !base_address) {