From: David Heidelberg Date: Mon, 17 Jul 2023 23:01:33 +0000 (+0200) Subject: panvk: architecture isn't invalid, just unsupported X-Git-Tag: upstream/23.3.3~2728 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=deb17db38e197dc30216ac3be1f3cd84a3e9f9cd;p=platform%2Fupstream%2Fmesa.git panvk: architecture isn't invalid, just unsupported When we fail, tell users clearly why. Reviewed-by: Boris Brezillon Signed-off-by: David Heidelberg Part-of: --- diff --git a/src/panfrost/vulkan/panvk_device.c b/src/panfrost/vulkan/panvk_device.c index d0555e9..34070d6 100644 --- a/src/panfrost/vulkan/panvk_device.c +++ b/src/panfrost/vulkan/panvk_device.c @@ -814,7 +814,7 @@ panvk_queue_init(struct panvk_device *device, struct panvk_queue *queue, queue->vk.driver_submit = panvk_v7_queue_submit; break; default: - unreachable("Invalid arch"); + unreachable("Unsupported architecture"); } queue->sync = create.handle; diff --git a/src/panfrost/vulkan/panvk_private.h b/src/panfrost/vulkan/panvk_private.h index 0dbe68d..54431f4 100644 --- a/src/panfrost/vulkan/panvk_private.h +++ b/src/panfrost/vulkan/panvk_private.h @@ -1060,7 +1060,7 @@ VK_DEFINE_NONDISP_HANDLE_CASTS(panvk_sampler, base, VkSampler, panvk_arch_name(name, v7)(__VA_ARGS__); \ break; \ default: \ - unreachable("Invalid arch"); \ + unreachable("Unsupported architecture"); \ } \ } while (0)