aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode/xmad.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-04-28 22:24:58 -0400
committerGitHub <noreply@github.com>2019-04-28 22:24:58 -0400
commitc52233ec8b26d5dc8cdca746fc181191c99fb33b (patch)
tree9d56a04c21f541570426042e74c7befe6b279317 /src/video_core/shader/decode/xmad.cpp
parent9a3737120d551f89453c6202565f6654743fe7b0 (diff)
parentfbe8d1ceaa94c70e13a575f774967e559d0dee72 (diff)
Merge pull request #2322 from ReinUsesLisp/wswitch
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);