From 9e7ae03b6c40723e77dd55c52f85f95913b256b1 Mon Sep 17 00:00:00 2001 From: GPUCode Date: Tue, 22 Aug 2023 00:16:57 +0300 Subject: [PATCH] vk_graphics_pipeline: Only fast compile if no shaders are pending * With this shaders weren't being compiled in parallel --- src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index f2ec5db0c..5ef3eb513 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp @@ -88,7 +88,7 @@ bool GraphicsPipeline::TryBuild(bool wait_built) { } // Ask the driver if it can give us the pipeline quickly. - if (!wait_built && instance.IsPipelineCreationCacheControlSupported() && Build(true)) { + if (!shaders_pending && instance.IsPipelineCreationCacheControlSupported() && Build(true)) { return true; }