Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deviceUUID filter with DXVK_FILTER_DEVICE_UUID #2408

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Merge branch 'master' into filter-uuid
  • Loading branch information
meladath committed Sep 1, 2023
commit 8e117058f0b07de3f656a4b01d9048c56ac90702
10 changes: 8 additions & 2 deletions src/dxvk/dxvk_instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,16 @@ namespace dxvk {
uint32_t numIGPU = 0;

for (uint32_t i = 0; i < numAdapters; i++) {
if (filter.testAdapter(deviceProperties[i])) {
if (filter.testAdapter(deviceProperties[i]))
result.push_back(new DxvkAdapter(m_vki, adapters[i]));
if(!filter.testCreatedAdapter(result.back()->devicePropertiesExt()))
if (!filter.testCreatedAdapter(result.back()->devicePropertiesExt())) {
result.pop_back();
} else {
if (deviceProperties[i].deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU)
numDGPU += 1;
else if (deviceProperties[i].deviceType == VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU)
numIGPU += 1;
}
}

std::stable_sort(result.begin(), result.end(),
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.