diff options
| author | bunnei <bunneidev@gmail.com> | 2020-05-30 11:51:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-30 11:51:42 -0400 |
| commit | 058ec22787a6d3e41c3dfabd2060a1b723594374 (patch) | |
| tree | 0c9498d5e104ce52c2e50f1a0020a97516924d06 /src/video_core/renderer_opengl | |
| parent | 9d9ffe0f9461ffa3b2e183b17a08953ada0ee91b (diff) | |
| parent | 32e6727daecab60d368d14619c1e04d0d7e60008 (diff) | |
Merge pull request #3982 from ReinUsesLisp/membar-cts
shader/other: Implement MEMBAR.CTS
Diffstat (limited to 'src/video_core/renderer_opengl')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 253484968..9cb115959 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -2344,7 +2344,12 @@ private: return {}; } - Expression MemoryBarrierGL(Operation) { + Expression MemoryBarrierGroup(Operation) { + code.AddLine("groupMemoryBarrier();"); + return {}; + } + + Expression MemoryBarrierGlobal(Operation) { code.AddLine("memoryBarrier();"); return {}; } @@ -2591,7 +2596,8 @@ private: &GLSLDecompiler::ShuffleIndexed, &GLSLDecompiler::Barrier, - &GLSLDecompiler::MemoryBarrierGL, + &GLSLDecompiler::MemoryBarrierGroup, + &GLSLDecompiler::MemoryBarrierGlobal, }; static_assert(operation_decompilers.size() == static_cast<std::size_t>(OperationCode::Amount)); |
