From 9b4e5b00ee7393303285c2010c409244145fee40 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Tue, 4 Jan 2022 20:40:07 -0600 Subject: VideoCommon: assume the majority of os/drivers support parallel compiling of shaders, we can create bugs if there are issues. Android is assumed buggy --- Source/Core/VideoCommon/VideoConfig.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'Source/Core/VideoCommon/VideoConfig.cpp') diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index a835625691..de2fe1c80e 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -206,16 +206,9 @@ u32 VideoConfig::GetShaderPrecompilerThreads() const if (!backend_info.bSupportsBackgroundCompiling) return 0; - const bool bugDatabaseSupported = - backend_info.api_type == APIType::OpenGL || backend_info.api_type == APIType::Vulkan; - // DirectX has always worked in our tests in PR#9414 - const bool multiThreadingWorking = - !bugDatabaseSupported || - !DriverDetails::HasBug(DriverDetails::BUG_BROKEN_MULTITHREADED_SHADER_PRECOMPILATION); - if (iShaderPrecompilerThreads >= 0) return static_cast(iShaderPrecompilerThreads); - else if (multiThreadingWorking) + else if (!DriverDetails::HasBug(DriverDetails::BUG_BROKEN_MULTITHREADED_SHADER_PRECOMPILATION)) return GetNumAutoShaderPreCompilerThreads(); else return 1; -- cgit v1.2.3