1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-27 04:54:15 +01:00

[dxvk] Don't skip CPU devices when a device filter is set

This commit is contained in:
WinterSnowfall 2025-02-25 19:59:16 +02:00 committed by Philip Rebohle
parent 13bd234cea
commit 31a4679960

View File

@ -33,9 +33,7 @@ namespace dxvk {
if (m_flags.test(DxvkDeviceFilterFlag::MatchDeviceName)) {
if (std::string(properties.deviceName).find(m_matchDeviceName) == std::string::npos)
return false;
}
if (m_flags.test(DxvkDeviceFilterFlag::SkipCpuDevices)) {
} else if (m_flags.test(DxvkDeviceFilterFlag::SkipCpuDevices)) {
if (properties.deviceType == VK_PHYSICAL_DEVICE_TYPE_CPU) {
Logger::warn(str::format("Skipping CPU adapter: ", properties.deviceName));
return false;