radv: report INITIALIZATION_FAILED when the amdgpu winsys init failed

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

Cc: <mesa-stable@lists.freedesktop.org>
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>
This commit is contained in:
Samuel Pitoiset
2020-04-29 13:24:36 +02:00
committed by Marge Bot
parent 9c62e63aca
commit f03abd5041
+1 -1
View File
@@ -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;
}