Module: Mesa
Branch: master
Commit: f3e37f5d262606f1a0f5a3073835ac0ecc41f629
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f3e37f5d262606f1a0f5a3073835ac0ecc41f629

Author: Samuel Pitoiset <[email protected]>
Date:   Wed Apr 29 14:09:10 2020 +0200

radv: display an error message if the winsys init failed

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4806>

---

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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to