mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 23:11:18 +12:00
disable MT if extension is not found
This commit is contained in:
parent
8ca3154ca3
commit
406e8a3397
1 changed files with 12 additions and 5 deletions
|
@ -200,16 +200,23 @@ void VulkanRenderer::DetermineVendor()
|
|||
{
|
||||
forceLog_printf("Driver version: %s", driverProperties.driverInfo);
|
||||
|
||||
// needed for multithreaded pipelines on nvidia (requires 515 or higher)
|
||||
m_featureControl.disableMultithreadedCompilation = (StringHelpers::ToInt(std::string(driverProperties.driverInfo)) < 515);
|
||||
if(m_vendor == GfxVendor::Nvidia)
|
||||
{
|
||||
// multithreaded pipelines on nvidia (requires 515 or higher)
|
||||
m_featureControl.disableMultithreadedCompilation = (StringHelpers::ToInt(std::string(driverProperties.driverInfo)) < 515);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
forceLog_printf("Driver version (as stored in device info): %08X", properties.properties.driverVersion);
|
||||
|
||||
// disableMultithreadedCompilation defaults to false, not like there's any other driver
|
||||
// on the planet with broken multithreading except Nvidia, which will always have a driver version string
|
||||
if(m_vendor == GfxVendor::Nvidia)
|
||||
{
|
||||
// if the driver does not support the extension,
|
||||
// it is assumed the driver is under version 515
|
||||
m_featureControl.disableMultithreadedCompilation = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue