hal/dx12: Fix UMA check

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-12-19 00:09:35 -05:00
1 parent b19288a78b
commit 54f20bedef
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