Mesa (master): radv: report INITIALIZATION_FAILED when the amdgpu winsys init failed

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 6 06:55:55 UTC 2020


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

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Apr 29 13:24:36 2020 +0200

radv: report INITIALIZATION_FAILED when the amdgpu winsys init failed

The driver should be capable if it reaches the winsys initialization.

Cc: <mesa-stable at lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4806>

---

 src/amd/vulkan/radv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 638fe0325ac..a28440e5fe3 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -296,7 +296,7 @@ radv_physical_device_init(struct radv_physical_device *device,
 	}
 
 	if (!device->ws) {
-		result = vk_error(instance, VK_ERROR_INCOMPATIBLE_DRIVER);
+		result = vk_error(instance, VK_ERROR_INITIALIZATION_FAILED);
 		goto fail_fd;
 	}
 



More information about the mesa-commit mailing list