From 552f0ff26713a2fd1fd9207e79574d35fd8d36dd Mon Sep 17 00:00:00 2001 From: Nguyen Dac Nam Date: Fri, 13 Mar 2020 23:07:05 +0700 Subject: [PATCH] gl_decompiler: add atomic op --- .../renderer_opengl/gl_shader_decompiler.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 8aa4a7ac95..9121a48bb4 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -2307,6 +2307,8 @@ private: ~Func() = delete; static constexpr std::string_view Add = "Add"; + static constexpr std::string_view Min = "Min"; + static constexpr std::string_view Max = "Max"; static constexpr std::string_view And = "And"; static constexpr std::string_view Or = "Or"; static constexpr std::string_view Xor = "Xor"; @@ -2457,7 +2459,21 @@ private: &GLSLDecompiler::AtomicImage, &GLSLDecompiler::AtomicImage, + &GLSLDecompiler::Atomic, &GLSLDecompiler::Atomic, + &GLSLDecompiler::Atomic, + &GLSLDecompiler::Atomic, + &GLSLDecompiler::Atomic, + &GLSLDecompiler::Atomic, + &GLSLDecompiler::Atomic, + + &GLSLDecompiler::Atomic, + &GLSLDecompiler::Atomic, + &GLSLDecompiler::Atomic, + &GLSLDecompiler::Atomic, + &GLSLDecompiler::Atomic, + &GLSLDecompiler::Atomic, + &GLSLDecompiler::Atomic, &GLSLDecompiler::Branch, &GLSLDecompiler::BranchIndirect,