diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-01-26 01:03:02 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-01-26 05:54:24 +0100 |
commit | d95d4ac84396973d76985dc96249d4714f58b6a2 (patch) | |
tree | 63083efff309ea993e1de84e4b93fd6d348dfce2 /src/video_core/renderer_opengl | |
parent | Merge pull request #3343 from FearlessTobi/ui-tab (diff) | |
download | yuzu-d95d4ac84396973d76985dc96249d4714f58b6a2.tar yuzu-d95d4ac84396973d76985dc96249d4714f58b6a2.tar.gz yuzu-d95d4ac84396973d76985dc96249d4714f58b6a2.tar.bz2 yuzu-d95d4ac84396973d76985dc96249d4714f58b6a2.tar.lz yuzu-d95d4ac84396973d76985dc96249d4714f58b6a2.tar.xz yuzu-d95d4ac84396973d76985dc96249d4714f58b6a2.tar.zst yuzu-d95d4ac84396973d76985dc96249d4714f58b6a2.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 2996aaf08..7b2a3a00b 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1858,10 +1858,7 @@ private: template <const std::string_view& opname, Type type> Expression Atomic(Operation operation) { - ASSERT(stage == ShaderType::Compute); - auto& smem = std::get<SmemNode>(*operation[0]); - - return {fmt::format("atomic{}(smem[{} >> 2], {})", opname, Visit(smem.GetAddress()).AsInt(), + return {fmt::format("atomic{}({}, {})", opname, Visit(operation[0]).GetCode(), Visit(operation[1]).As(type)), type}; } |