radv: display an error message if the winsys init failed
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4806>
This commit is contained in:
parent
701f2c3dfc
commit
f3e37f5d26
|
@ -304,7 +304,8 @@ radv_physical_device_try_create(struct radv_instance *instance,
|
|||
}
|
||||
|
||||
if (!device->ws) {
|
||||
result = vk_error(instance, VK_ERROR_INITIALIZATION_FAILED);
|
||||
result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,
|
||||
"failed to initialize winsys");
|
||||
goto fail_alloc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue