Skip to content
Snippets Groups Projects
Unverified Commit 4d28e606 authored by Charles Lombardo's avatar Charles Lombardo Committed by GitHub
Browse files

Merge pull request #11523 from t895/shader-workers

android: Use 1 worker for shader compilation for all devices
parents 7282976d af0c1b0c
No related branches found
No related tags found
No related merge requests found
...@@ -294,10 +294,11 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device ...@@ -294,10 +294,11 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device
texture_cache{texture_cache_}, shader_notify{shader_notify_}, texture_cache{texture_cache_}, shader_notify{shader_notify_},
use_asynchronous_shaders{Settings::values.use_asynchronous_shaders.GetValue()}, use_asynchronous_shaders{Settings::values.use_asynchronous_shaders.GetValue()},
use_vulkan_pipeline_cache{Settings::values.use_vulkan_driver_pipeline_cache.GetValue()}, use_vulkan_pipeline_cache{Settings::values.use_vulkan_driver_pipeline_cache.GetValue()},
workers(device.GetDriverID() == VK_DRIVER_ID_QUALCOMM_PROPRIETARY #ifdef ANDROID
? 1 workers(1, "VkPipelineBuilder"),
: (std::max(std::thread::hardware_concurrency(), 2U) - 1), #else
"VkPipelineBuilder"), workers(std::max(std::thread::hardware_concurrency(), 2U) - 1, "VkPipelineBuilder"),
#endif
serialization_thread(1, "VkPipelineSerialization") { serialization_thread(1, "VkPipelineSerialization") {
const auto& float_control{device.FloatControlProperties()}; const auto& float_control{device.FloatControlProperties()};
const VkDriverId driver_id{device.GetDriverID()}; const VkDriverId driver_id{device.GetDriverID()};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment