radv: report INITIALIZATION_FAILED when the amdgpu winsys init failed
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Apr 2020 11:24:36 +0000 (13:24 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 May 2020 06:44:21 +0000 (06:44 +0000)
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>

src/amd/vulkan/radv_device.c

index 638fe0325ac99cd7af527f45881a83ef3b1d4b48..a28440e5fe3a6221d984932dcbb41e345f6a4ff0 100644 (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;
        }