gpu: Rank dzn above lavapipe, for WSL Vulkan support
Some checks failed
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

This commit is contained in:
Ethan Lee
2026-01-31 08:34:47 -05:00
parent c9b7ca0c42
commit fe8b68db60

View File

@@ -11990,7 +11990,10 @@ static bool VULKAN_INTERNAL_GetDeviceRank(
}
if (physicalDeviceExtensions->MSFT_layered_driver && physicalDeviceLayeredDriverProperties.underlyingAPI != VK_LAYERED_DRIVER_UNDERLYING_API_NONE_MSFT) {
deviceType = VK_PHYSICAL_DEVICE_TYPE_OTHER;
/* Rank Dozen above CPU, but below INTEGRATED.
* This is needed for WSL specifically.
*/
deviceType = VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU;
/* Dozen hasn't been tested for conformance and it probably won't be,
* but WSL may need this so let's be generous.