summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2022-02-06 01:56:38 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-10-06 21:00:52 +0200
commit5caa150e9a08d006a484c0b06a8f3fb603487d64 (patch)
tree6db1355799d213442a4ba5ffed8a306104ba15c0 /src/video_core/renderer_opengl
parentVideoCore: Refactor fencing system. (diff)
downloadyuzu-5caa150e9a08d006a484c0b06a8f3fb603487d64.tar
yuzu-5caa150e9a08d006a484c0b06a8f3fb603487d64.tar.gz
yuzu-5caa150e9a08d006a484c0b06a8f3fb603487d64.tar.bz2
yuzu-5caa150e9a08d006a484c0b06a8f3fb603487d64.tar.lz
yuzu-5caa150e9a08d006a484c0b06a8f3fb603487d64.tar.xz
yuzu-5caa150e9a08d006a484c0b06a8f3fb603487d64.tar.zst
yuzu-5caa150e9a08d006a484c0b06a8f3fb603487d64.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 6ebd6cff9..02bb17715 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -215,6 +215,9 @@ void RasterizerOpenGL::Draw(bool is_indexed, bool is_instanced) {
if (!pipeline) {
return;
}
+
+ gpu.TickWork();
+
std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex};
pipeline->SetEngine(maxwell3d, gpu_memory);
pipeline->Configure(is_indexed);
@@ -272,6 +275,7 @@ void RasterizerOpenGL::DispatchCompute() {
if (!pipeline) {
return;
}
+ pipeline->SetEngine(kepler_compute, gpu_memory);
pipeline->Configure();
const auto& qmd{kepler_compute->launch_description};
glDispatchCompute(qmd.grid_dim_x, qmd.grid_dim_y, qmd.grid_dim_z);