lavapipe: Don't wrap errors returned from vk_device_init in vk_error
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 1 Nov 2021 04:23:37 +0000 (23:23 -0500)
committerDave Airlie <airlied@redhat.com>
Mon, 1 Nov 2021 04:30:32 +0000 (14:30 +1000)
commit79f57f68930ce4fcf59bdca82357e19b4f3d62e6
tree53235f0536afc82c29ff9f4059b03a0608d66669
parent73af67883ddf6faec9c0e76f8c174fb450817179
lavapipe: Don't wrap errors returned from vk_device_init in vk_error

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>
src/gallium/frontends/lavapipe/lvp_device.c