From: Samuel Pitoiset Date: Wed, 29 Apr 2020 12:09:10 +0000 (+0200) Subject: radv: display an error message if the winsys init failed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3e37f5d262606f1a0f5a3073835ac0ecc41f629;p=mesa.git radv: display an error message if the winsys init failed Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index c4e1a548c6c..ceedb4a0c5a 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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; }