Skip to content

Commit e803cbb

Browse files
committed
gpu: Rank dzn above lavapipe, for WSL Vulkan support
1 parent 997808a commit e803cbb

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
@@ -11917,7 +11917,10 @@ static bool VULKAN_INTERNAL_GetDeviceRank(
1191711917
}
1191811918

1191911919
if (physicalDeviceExtensions->MSFT_layered_driver && physicalDeviceLayeredDriverProperties.underlyingAPI != VK_LAYERED_DRIVER_UNDERLYING_API_NONE_MSFT) {
11920-
deviceType = VK_PHYSICAL_DEVICE_TYPE_OTHER;
11920+
/* Rank Dozen above CPU, but below INTEGRATED.
11921+
* This is needed for WSL specifically.
11922+
*/
11923+
deviceType = VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU;
1192111924

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

0 commit comments

Comments
 (0)