Skip to content

Commit fe8b68d

Browse files
committed
gpu: Rank dzn above lavapipe, for WSL Vulkan support
1 parent c9b7ca0 commit fe8b68d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/gpu/vulkan/SDL_gpu_vulkan.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11990,7 +11990,10 @@ static bool VULKAN_INTERNAL_GetDeviceRank(
1199011990
}
1199111991

1199211992
if (physicalDeviceExtensions->MSFT_layered_driver && physicalDeviceLayeredDriverProperties.underlyingAPI != VK_LAYERED_DRIVER_UNDERLYING_API_NONE_MSFT) {
11993-
deviceType = VK_PHYSICAL_DEVICE_TYPE_OTHER;
11993+
/* Rank Dozen above CPU, but below INTEGRATED.
11994+
* This is needed for WSL specifically.
11995+
*/
11996+
deviceType = VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU;
1199411997

1199511998
/* Dozen hasn't been tested for conformance and it probably won't be,
1199611999
* but WSL may need this so let's be generous.

0 commit comments

Comments
 (0)