dzn: Add a DXCore enumeration path
authorJesse Natalie <jenatali@microsoft.com>
Fri, 1 Jul 2022 20:38:14 +0000 (13:38 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 6 Jul 2022 12:18:55 +0000 (12:18 +0000)
commit074275d91170e59768e5ecc41ea9d36b2ee264d6
treed6e6bc4d8be5ef86812172caf765ba059fe56145
parent49967ea306aec0197aaeb0f9ed8d356ac7b149c0
dzn: Add a DXCore enumeration path

WSL doesn't have DXGI, but it does have DXCore. DXCore also has a nice
property that it filters to only D3D12-capable adapters. We can rely
on DXCore as a first option even for Windows, because we'll be able
to let the Vulkan loader do preference sorting, instead of having to
rely on DXGI to do it for us.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Bill Kristiansen <billkris@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17340>
src/microsoft/vulkan/dzn_device.c
src/microsoft/vulkan/dzn_dxcore.cpp [new file with mode: 0644]
src/microsoft/vulkan/dzn_physical_device_enum.h
src/microsoft/vulkan/meson.build