summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-06-05 21:48:38 -0300
committerGravatar ameerj2021-07-22 21:51:34 -0400
commit2a0aeaa3d283f1c7f003c956ab3079f70246b008 (patch)
tree9984df6f390cb327447ba166510a5fd392b5f938 /src
parentDMA: Restrict optimised path for BlockToLinear further. (diff)
downloadyuzu-2a0aeaa3d283f1c7f003c956ab3079f70246b008.tar.gz
yuzu-2a0aeaa3d283f1c7f003c956ab3079f70246b008.tar.xz
yuzu-2a0aeaa3d283f1c7f003c956ab3079f70246b008.zip
vk_rasterizer: Flush work on clear and dispatches
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index 9611b480a..e72f8426b 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
@@ -189,6 +189,7 @@ void RasterizerVulkan::Clear() {
189 if (!maxwell3d.ShouldExecute()) { 189 if (!maxwell3d.ShouldExecute()) {
190 return; 190 return;
191 } 191 }
192 FlushWork();
192 193
193 query_cache.UpdateCounters(); 194 query_cache.UpdateCounters();
194 195
@@ -259,6 +260,8 @@ void RasterizerVulkan::Clear() {
259} 260}
260 261
261void RasterizerVulkan::DispatchCompute() { 262void RasterizerVulkan::DispatchCompute() {
263 FlushWork();
264
262 ComputePipeline* const pipeline{pipeline_cache.CurrentComputePipeline()}; 265 ComputePipeline* const pipeline{pipeline_cache.CurrentComputePipeline()};
263 if (!pipeline) { 266 if (!pipeline) {
264 return; 267 return;