diff options
| author | 2022-02-06 01:56:38 +0100 | |
|---|---|---|
| committer | 2022-10-06 21:00:52 +0200 | |
| commit | 5caa150e9a08d006a484c0b06a8f3fb603487d64 (patch) | |
| tree | 6db1355799d213442a4ba5ffed8a306104ba15c0 /src | |
| parent | VideoCore: Refactor fencing system. (diff) | |
| download | yuzu-5caa150e9a08d006a484c0b06a8f3fb603487d64.tar.gz yuzu-5caa150e9a08d006a484c0b06a8f3fb603487d64.tar.xz yuzu-5caa150e9a08d006a484c0b06a8f3fb603487d64.zip | |
OpenGL: Fix TickWork
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
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) { | |||
| 215 | if (!pipeline) { | 215 | if (!pipeline) { |
| 216 | return; | 216 | return; |
| 217 | } | 217 | } |
| 218 | |||
| 219 | gpu.TickWork(); | ||
| 220 | |||
| 218 | std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex}; | 221 | std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex}; |
| 219 | pipeline->SetEngine(maxwell3d, gpu_memory); | 222 | pipeline->SetEngine(maxwell3d, gpu_memory); |
| 220 | pipeline->Configure(is_indexed); | 223 | pipeline->Configure(is_indexed); |
| @@ -272,6 +275,7 @@ void RasterizerOpenGL::DispatchCompute() { | |||
| 272 | if (!pipeline) { | 275 | if (!pipeline) { |
| 273 | return; | 276 | return; |
| 274 | } | 277 | } |
| 278 | pipeline->SetEngine(kepler_compute, gpu_memory); | ||
| 275 | pipeline->Configure(); | 279 | pipeline->Configure(); |
| 276 | const auto& qmd{kepler_compute->launch_description}; | 280 | const auto& qmd{kepler_compute->launch_description}; |
| 277 | glDispatchCompute(qmd.grid_dim_x, qmd.grid_dim_y, qmd.grid_dim_z); | 281 | glDispatchCompute(qmd.grid_dim_x, qmd.grid_dim_y, qmd.grid_dim_z); |