diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-29 06:36:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 06:36:39 +0200 |
commit | 063d38a99157dc72329678a0b0ca5df3d65dab8d (patch) | |
tree | 04509813b4509c2704e7c85d7eebbd1e909c5344 /src/video_core | |
parent | Merge pull request #8098 from merryhime/ic-ivau (diff) | |
parent | gl_rasterizer: Avoid scenario locking already owned mutex (diff) | |
download | yuzu-063d38a99157dc72329678a0b0ca5df3d65dab8d.tar yuzu-063d38a99157dc72329678a0b0ca5df3d65dab8d.tar.gz yuzu-063d38a99157dc72329678a0b0ca5df3d65dab8d.tar.bz2 yuzu-063d38a99157dc72329678a0b0ca5df3d65dab8d.tar.lz yuzu-063d38a99157dc72329678a0b0ca5df3d65dab8d.tar.xz yuzu-063d38a99157dc72329678a0b0ca5df3d65dab8d.tar.zst yuzu-063d38a99157dc72329678a0b0ca5df3d65dab8d.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 4d632d211..e6f9ece8b 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -15,8 +15,9 @@ #include "common/logging/log.h" #include "common/math_util.h" #include "common/microprofile.h" +#include "common/scope_exit.h" #include "common/settings.h" -#include "core/memory.h" + #include "video_core/engines/kepler_compute.h" #include "video_core/engines/maxwell_3d.h" #include "video_core/memory_manager.h" @@ -210,6 +211,7 @@ void RasterizerOpenGL::Clear() { void RasterizerOpenGL::Draw(bool is_indexed, bool is_instanced) { MICROPROFILE_SCOPE(OpenGL_Drawing); + SCOPE_EXIT({ gpu.TickWork(); }); query_cache.UpdateCounters(); GraphicsPipeline* const pipeline{shader_cache.CurrentGraphicsPipeline()}; @@ -265,8 +267,6 @@ void RasterizerOpenGL::Draw(bool is_indexed, bool is_instanced) { ++num_queued_commands; has_written_global_memory |= pipeline->WritesGlobalMemory(); - - gpu.TickWork(); } void RasterizerOpenGL::DispatchCompute() { |