summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornamkazy <nam.kazt.91@gmail.com>2020-03-30 13:48:22 +0200
committernamkazy <nam.kazt.91@gmail.com>2020-03-30 13:48:22 +0200
commitc2665ec9c232f473ecb9301da7181159505a1c76 (patch)
tree4a8cf1f42d55d65497e50c99a95b5a869459a988 /src
parentshader_decode: ATOM/ATOMS: add function to avoid code repetition (diff)
downloadyuzu-c2665ec9c232f473ecb9301da7181159505a1c76.tar
yuzu-c2665ec9c232f473ecb9301da7181159505a1c76.tar.gz
yuzu-c2665ec9c232f473ecb9301da7181159505a1c76.tar.bz2
yuzu-c2665ec9c232f473ecb9301da7181159505a1c76.tar.lz
yuzu-c2665ec9c232f473ecb9301da7181159505a1c76.tar.xz
yuzu-c2665ec9c232f473ecb9301da7181159505a1c76.tar.zst
yuzu-c2665ec9c232f473ecb9301da7181159505a1c76.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 9121a48bb..c7d24cf14 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -2114,6 +2114,10 @@ private:
template <const std::string_view& opname, Type type>
Expression Atomic(Operation operation) {
+ if ((opname == Func::Min || opname == Func::Max) && type == Type::Int) {
+ UNIMPLEMENTED_MSG("Unimplemented Min & Max for atomic operations");
+ return {};
+ }
return {fmt::format("atomic{}({}, {})", opname, Visit(operation[0]).GetCode(),
Visit(operation[1]).As(type)),
type};