SDL: gpu: Rank dzn above lavapipe, for WSL Vulkan support (e803c)

From e803cbb34a1165b28fd3ecc8e8f5265367f8cb20 Mon Sep 17 00:00:00 2001
From: Ethan Lee <[EMAIL REDACTED]>
Date: Sat, 31 Jan 2026 08:34:47 -0500
Subject: [PATCH] gpu: Rank dzn above lavapipe, for WSL Vulkan support

---
 src/gpu/vulkan/SDL_gpu_vulkan.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c
index f07cd675e55bd..62794c7d6be72 100644
--- a/src/gpu/vulkan/SDL_gpu_vulkan.c
+++ b/src/gpu/vulkan/SDL_gpu_vulkan.c
@@ -11917,7 +11917,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.