diff options
author | bunnei <bunneidev@gmail.com> | 2020-01-29 22:49:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 22:49:54 +0100 |
commit | 2db7adc42a3d72fe7b02fbf4902b98d69c777b2f (patch) | |
tree | 197f2b968aa80756e329d9c76cfe72575e2f2ac5 /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Merge pull request #3355 from ReinUsesLisp/break-down (diff) | |
parent | shader/memory: Implement ATOM.ADD (diff) | |
download | yuzu-2db7adc42a3d72fe7b02fbf4902b98d69c777b2f.tar yuzu-2db7adc42a3d72fe7b02fbf4902b98d69c777b2f.tar.gz yuzu-2db7adc42a3d72fe7b02fbf4902b98d69c777b2f.tar.bz2 yuzu-2db7adc42a3d72fe7b02fbf4902b98d69c777b2f.tar.lz yuzu-2db7adc42a3d72fe7b02fbf4902b98d69c777b2f.tar.xz yuzu-2db7adc42a3d72fe7b02fbf4902b98d69c777b2f.tar.zst yuzu-2db7adc42a3d72fe7b02fbf4902b98d69c777b2f.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_decompiler.cpp')
-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 6531dfe9b..a1ac3d7a9 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1857,10 +1857,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}; } |