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:
Samuel Pitoiset 2020-04-29 14:09:10 +02:00 committed by Marge Bot
parent 701f2c3dfc
commit f3e37f5d26
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}