summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-09-17 02:40:32 +0200
committerCharles Lombardo <clombardo169@gmail.com>2023-09-17 03:38:28 +0200
commitaf0c1b0cb7caa079fe746926ff93643e3b61bc89 (patch)
tree5c1e7f23f9696e64fe05059fa61696d7a5fe0211
parentMerge pull request #11521 from t895/content-install-fix (diff)
downloadyuzu-af0c1b0cb7caa079fe746926ff93643e3b61bc89.tar
yuzu-af0c1b0cb7caa079fe746926ff93643e3b61bc89.tar.gz
yuzu-af0c1b0cb7caa079fe746926ff93643e3b61bc89.tar.bz2
yuzu-af0c1b0cb7caa079fe746926ff93643e3b61bc89.tar.lz
yuzu-af0c1b0cb7caa079fe746926ff93643e3b61bc89.tar.xz
yuzu-af0c1b0cb7caa079fe746926ff93643e3b61bc89.tar.zst
yuzu-af0c1b0cb7caa079fe746926ff93643e3b61bc89.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
index 4f83a88e1..a1ec1a100 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
@@ -294,10 +294,11 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device
texture_cache{texture_cache_}, shader_notify{shader_notify_},
use_asynchronous_shaders{Settings::values.use_asynchronous_shaders.GetValue()},
use_vulkan_pipeline_cache{Settings::values.use_vulkan_driver_pipeline_cache.GetValue()},
- workers(device.GetDriverID() == VK_DRIVER_ID_QUALCOMM_PROPRIETARY
- ? 1
- : (std::max(std::thread::hardware_concurrency(), 2U) - 1),
- "VkPipelineBuilder"),
+#ifdef ANDROID
+ workers(1, "VkPipelineBuilder"),
+#else
+ workers(std::max(std::thread::hardware_concurrency(), 2U) - 1, "VkPipelineBuilder"),
+#endif
serialization_thread(1, "VkPipelineSerialization") {
const auto& float_control{device.FloatControlProperties()};
const VkDriverId driver_id{device.GetDriverID()};