Browse Source

vk_rasterizer: Flush work on clear and dispatches

nce_cpp
ReinUsesLisp 5 years ago
committed by ameerj
parent
commit
420ec60284
  1. 3
      src/video_core/renderer_vulkan/vk_rasterizer.cpp

3
src/video_core/renderer_vulkan/vk_rasterizer.cpp

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

Loading…
Cancel
Save