summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/shader_ir.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-04-03 09:33:36 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-04-18 20:54:39 +0200
commitfbe8d1ceaa94c70e13a575f774967e559d0dee72 (patch)
tree50f2bca6610784444cc3b75fd2c88eac553e1075 /src/video_core/shader/shader_ir.cpp
parentMerge pull request #2378 from lioncash/ro (diff)
downloadyuzu-fbe8d1ceaa94c70e13a575f774967e559d0dee72.tar
yuzu-fbe8d1ceaa94c70e13a575f774967e559d0dee72.tar.gz
yuzu-fbe8d1ceaa94c70e13a575f774967e559d0dee72.tar.bz2
yuzu-fbe8d1ceaa94c70e13a575f774967e559d0dee72.tar.lz
yuzu-fbe8d1ceaa94c70e13a575f774967e559d0dee72.tar.xz
yuzu-fbe8d1ceaa94c70e13a575f774967e559d0dee72.tar.zst
yuzu-fbe8d1ceaa94c70e13a575f774967e559d0dee72.zip
Diffstat (limited to 'src/video_core/shader/shader_ir.cpp')
-rw-r--r--src/video_core/shader/shader_ir.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/video_core/shader/shader_ir.cpp b/src/video_core/shader/shader_ir.cpp
index ac5112d78..cb60b8886 100644
--- a/src/video_core/shader/shader_ir.cpp
+++ b/src/video_core/shader/shader_ir.cpp
@@ -434,11 +434,14 @@ Node ShaderIR::BitfieldExtract(Node value, u32 offset, u32 bits) {
return OperationCode::LogicalUGreaterEqual;
case OperationCode::INegate:
UNREACHABLE_MSG("Can't negate an unsigned integer");
+ return {};
case OperationCode::IAbsolute:
UNREACHABLE_MSG("Can't apply absolute to an unsigned integer");
+ return {};
+ default:
+ UNREACHABLE_MSG("Unknown signed operation with code={}", static_cast<u32>(operation_code));
+ return {};
}
- UNREACHABLE_MSG("Unknown signed operation with code={}", static_cast<u32>(operation_code));
- return {};
}
-} // namespace VideoCommon::Shader \ No newline at end of file
+} // namespace VideoCommon::Shader