vk_device_init already calls vk_error so this is redundant. Also, it
makes vk_error grumpy to see a VK_ERROR_FEATURE_NOT_PRESENT on an
instance rather than a physical device.
Fixes:
47adb1114376 ("lavapipe: Switch to the new vk_error helpers")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13619>
pAllocator);
if (result != VK_SUCCESS) {
vk_free(&device->vk.alloc, device);
- return vk_error(instance, result);
+ return result;
}
device->instance = (struct lvp_instance *)physical_device->vk.instance;