From: Emil Velikov <emil.veli...@collabora.com> If radv_device_get_cache_uuid() fails result will be VK_SUCCESS as set by the radv_init_wsi() call above.
Fixes: d943839 (radv: Use library mtime for cache UUID.) Cc: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Signed-off-by: Emil Velikov <emil.veli...@collabora.com> --- src/amd/vulkan/radv_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index a08f6ac..41e8a1c 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -125,6 +125,8 @@ radv_physical_device_init(struct radv_physical_device *device, if (radv_device_get_cache_uuid(device->rad_info.family, device->uuid)) { radv_finish_wsi(device); device->ws->destroy(device->ws); + result = vk_errorf(VK_ERROR_INITIALIZATION_FAILED, + "cannot generate UUID"); goto fail; } -- 2.10.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev