vk_rasterizer: Flush work on clear and dispatches

master
ReinUsesLisp 2021-06-05 21:48:38 +07:00 committed by ameerj
parent c736b9ffab
commit 2a0aeaa3d2
1 changed files with 3 additions and 0 deletions

@ -189,6 +189,7 @@ void RasterizerVulkan::Clear() {
if (!maxwell3d.ShouldExecute()) { if (!maxwell3d.ShouldExecute()) {
return; return;
} }
FlushWork();
query_cache.UpdateCounters(); query_cache.UpdateCounters();
@ -259,6 +260,8 @@ void RasterizerVulkan::Clear() {
} }
void RasterizerVulkan::DispatchCompute() { void RasterizerVulkan::DispatchCompute() {
FlushWork();
ComputePipeline* const pipeline{pipeline_cache.CurrentComputePipeline()}; ComputePipeline* const pipeline{pipeline_cache.CurrentComputePipeline()};
if (!pipeline) { if (!pipeline) {
return; return;