From f3e37f5d262606f1a0f5a3073835ac0ecc41f629 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 29 Apr 2020 14:09:10 +0200 Subject: [PATCH] radv: display an error message if the winsys init failed Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2