fixing physical device selection under swiftshaders

This commit is contained in:
2025-09-24 19:11:53 +02:00
parent 18b57e3761
commit ab9d12ae17
2 changed files with 2 additions and 3 deletions

View File

@@ -120,6 +120,8 @@ namespace mlx
else
m_physical_device = kvfPickGoodPhysicalDevice(m_instance, VK_NULL_HANDLE, nullptr, 0);
Verify(m_physical_device != VK_NULL_HANDLE, "Could not find a suitable physical device");
// just for style
VkPhysicalDeviceProperties props;
vkGetPhysicalDeviceProperties(m_physical_device, &props);