aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode/arithmetic_half.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-09-16 17:48:01 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-09-16 17:48:01 -0300
commitee7e70cfbc5d60e507aaa19202ad8192dc0fa2a7 (patch)
treecba7d92a8b7250e0afd889057b08149a352ca91a /src/video_core/shader/decode/arithmetic_half.cpp
parent40d901d99e1c2b923233c84e248be7f5e099e594 (diff)
video_core: Enforce -Werror=switch
This forces us to fix all -Wswitch warnings in video_core.
Diffstat (limited to 'src/video_core/shader/decode/arithmetic_half.cpp')
-rw-r--r--src/video_core/shader/decode/arithmetic_half.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/arithmetic_half.cpp b/src/video_core/shader/decode/arithmetic_half.cpp
index a276aee445..88103fede4 100644
--- a/src/video_core/shader/decode/arithmetic_half.cpp
+++ b/src/video_core/shader/decode/arithmetic_half.cpp
@@ -53,6 +53,9 @@ u32 ShaderIR::DecodeArithmeticHalf(NodeBlock& bb, u32 pc) {
absolute_a = ((instr.value >> 44) & 1) != 0;
absolute_b = ((instr.value >> 54) & 1) != 0;
break;
+ default:
+ UNREACHABLE();
+ break;
}
Node op_a = UnpackHalfFloat(GetRegister(instr.gpr8), instr.alu_half.type_a);