summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-04-05 08:56:58 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:26 +0200
commit72daa2a039d58d23b0dca035bb5f6af8b10ce97b (patch)
treec971b1e78869a84198a2856b20ac00d31a04bf47 /src/video_core/renderer_vulkan
parentshader: Fix splits on blocks using indirect branches (diff)
downloadyuzu-72daa2a039d58d23b0dca035bb5f6af8b10ce97b.tar
yuzu-72daa2a039d58d23b0dca035bb5f6af8b10ce97b.tar.gz
yuzu-72daa2a039d58d23b0dca035bb5f6af8b10ce97b.tar.bz2
yuzu-72daa2a039d58d23b0dca035bb5f6af8b10ce97b.tar.lz
yuzu-72daa2a039d58d23b0dca035bb5f6af8b10ce97b.tar.xz
yuzu-72daa2a039d58d23b0dca035bb5f6af8b10ce97b.tar.zst
yuzu-72daa2a039d58d23b0dca035bb5f6af8b10ce97b.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
index f88ab67ae..088de7001 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
@@ -6,6 +6,7 @@
#include <cstddef>
#include <fstream>
#include <memory>
+#include <thread>
#include <vector>
#include "common/bit_cast.h"
@@ -607,7 +608,8 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, Tegra::GPU& gpu_,
scheduler{scheduler_}, descriptor_pool{descriptor_pool_},
update_descriptor_queue{update_descriptor_queue_}, render_pass_cache{render_pass_cache_},
buffer_cache{buffer_cache_}, texture_cache{texture_cache_},
- workers(11, "yuzu:PipelineBuilder"), serialization_thread(1, "yuzu:PipelineSerialization") {
+ workers(std::thread::hardware_concurrency() - 1, "yuzu:PipelineBuilder"),
+ serialization_thread(1, "yuzu:PipelineSerialization") {
const auto& float_control{device.FloatControlProperties()};
const VkDriverIdKHR driver_id{device.GetDriverID()};
base_profile = Shader::Profile{