mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
vk: Fix result of vkCreateInstance
When fill_physical_device() fails, don't return VK_SUCCESS.
This commit is contained in:
parent
14929046ba
commit
a61f307996
1 changed files with 4 additions and 2 deletions
|
|
@ -142,9 +142,11 @@ VkResult anv_CreateInstance(
|
|||
instance->physicalDeviceCount = 0;
|
||||
result = fill_physical_device(&instance->physicalDevice,
|
||||
instance, "/dev/dri/renderD128");
|
||||
if (result == VK_SUCCESS)
|
||||
instance->physicalDeviceCount++;
|
||||
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
|
||||
instance->physicalDeviceCount++;
|
||||
*pInstance = (VkInstance) instance;
|
||||
|
||||
return VK_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue