summaryrefslogtreecommitdiff
path: root/src/microsoft
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@microsoft.com>2022-08-29 12:59:52 -0700
committerMarge Bot <emma+marge@anholt.net>2022-10-20 14:40:49 +0000
commitfd653ee33ff75dc8a3e70c12875379877220a0d5 (patch)
treed75a19205ef4d81594278339fd845264ea0a678a /src/microsoft
parent74d1c72b353768197d56bdd492de105a688d90a5 (diff)
downloadmesa-fd653ee33ff75dc8a3e70c12875379877220a0d5.tar.gz
mesa-fd653ee33ff75dc8a3e70c12875379877220a0d5.tar.bz2
mesa-fd653ee33ff75dc8a3e70c12875379877220a0d5.zip
dzn: Use architecture props to return correct device type
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18306>
Diffstat (limited to 'src/microsoft')
-rw-r--r--src/microsoft/vulkan/dzn_device.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/microsoft/vulkan/dzn_device.c b/src/microsoft/vulkan/dzn_device.c
index 6790e1dafb9..b1b2b353480 100644
--- a/src/microsoft/vulkan/dzn_device.c
+++ b/src/microsoft/vulkan/dzn_device.c
@@ -1566,13 +1566,7 @@ dzn_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
VkPhysicalDeviceType devtype = VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU;
if (pdevice->desc.is_warp)
devtype = VK_PHYSICAL_DEVICE_TYPE_CPU;
- else if (false) { // TODO: detect discreete GPUs
- /* This is a tad tricky to get right, because we need to have the
- * actual ID3D12Device before we can query the
- * D3D12_FEATURE_DATA_ARCHITECTURE structure... So for now, let's
- * just pretend everything is integrated, because... well, that's
- * what I have at hand right now ;)
- */
+ else if (!pdevice->architecture.UMA) {
devtype = VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU;
}