aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode/xmad.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-04-03 04:33:36 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-04-18 15:54:39 -0300
commitfbe8d1ceaa94c70e13a575f774967e559d0dee72 (patch)
tree50f2bca6610784444cc3b75fd2c88eac553e1075 /src/video_core/shader/decode/xmad.cpp
parent1f4dfb3998fc1ef91132a79bd3a5153a56e03eca (diff)
video_core: Silent -Wswitch warnings
Diffstat (limited to 'src/video_core/shader/decode/xmad.cpp')
-rw-r--r--src/video_core/shader/decode/xmad.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/xmad.cpp b/src/video_core/shader/decode/xmad.cpp
index db15c0718..04a776398 100644
--- a/src/video_core/shader/decode/xmad.cpp
+++ b/src/video_core/shader/decode/xmad.cpp
@@ -56,9 +56,10 @@ u32 ShaderIR::DecodeXmad(NodeBlock& bb, u32 pc) {
instr.xmad.mode,
Immediate(static_cast<u32>(instr.xmad.imm20_16)),
GetRegister(instr.gpr39)};
+ default:
+ UNIMPLEMENTED_MSG("Unhandled XMAD instruction: {}", opcode->get().GetName());
+ return {false, false, false, Tegra::Shader::XmadMode::None, Immediate(0), Immediate(0)};
}
- UNIMPLEMENTED_MSG("Unhandled XMAD instruction: {}", opcode->get().GetName());
- return {false, false, false, Tegra::Shader::XmadMode::None, Immediate(0), Immediate(0)};
}();
op_a = BitfieldExtract(op_a, instr.xmad.high_a ? 16 : 0, 16);