hal/dx12: Fix UMA check

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-12-29 09:20:40 -05:00
1 parent db005da49d
commit f67847d1d1
1 file changed
+1 -1
+1 -1
View File
@@ -98,7 +98,7 @@ impl super::Adapter {
device_type: if (desc.Flags & dxgi::DXGI_ADAPTER_FLAG_SOFTWARE) != 0 {
workarounds.avoid_cpu_descriptor_overwrites = true;
wgt::DeviceType::Cpu
} else if features_architecture.CacheCoherentUMA != 0 {
} else if features_architecture.UMA != 0 {
wgt::DeviceType::IntegratedGpu
} else {
wgt::DeviceType::DiscreteGpu