VERY experimental Nintendo Switch 2 emulator
C++
gl_decompiler: add atomic op
Nguyen Dac Namf3880c13faf4
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cppindex 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<Func::Xor>,&GLSLDecompiler::AtomicImage<Func::Exchange>,+ &GLSLDecompiler::Atomic<Func::Exchange, Type::Uint>,&GLSLDecompiler::Atomic<Func::Add, Type::Uint>,+ &GLSLDecompiler::Atomic<Func::Min, Type::Uint>,+ &GLSLDecompiler::Atomic<Func::Max, Type::Uint>,+ &GLSLDecompiler::Atomic<Func::And, Type::Uint>,+ &GLSLDecompiler::Atomic<Func::Or, Type::Uint>,+ &GLSLDecompiler::Atomic<Func::Xor, Type::Uint>,++ &GLSLDecompiler::Atomic<Func::Exchange, Type::Int>,+ &GLSLDecompiler::Atomic<Func::Add, Type::Int>,+ &GLSLDecompiler::Atomic<Func::Min, Type::Int>,+ &GLSLDecompiler::Atomic<Func::Max, Type::Int>,+ &GLSLDecompiler::Atomic<Func::And, Type::Int>,+ &GLSLDecompiler::Atomic<Func::Or, Type::Int>,+ &GLSLDecompiler::Atomic<Func::Xor, Type::Int>,&GLSLDecompiler::Branch,&GLSLDecompiler::BranchIndirect,