Skip to content

Commit

Permalink
hal/dx12: Fix UMA check
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Dec 19, 2021
1 parent b19288a commit 54f20be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-hal/src/dx12/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54f20be

Please sign in to comment.