radv: display an error message if the winsys init failed
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Apr 2020 12:09:10 +0000 (14:09 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 May 2020 06:44:21 +0000 (06:44 +0000)
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>

src/amd/vulkan/radv_device.c

index c4e1a548c6c76badee5ae4daeff7f2048cf4b475..ceedb4a0c5abf257cfce9768a7c3b752fa51371b 100644 (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;
        }