From 5a82232e5cb43d753339c77ab02f14d2621f1687 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 20 Jan 2022 12:08:20 +0100 Subject: [PATCH] vulkan/wsi/wayland: use DRM_FORMAT_INVALID Instead of using the magic value 0, use the define. Signed-off-by: Simon Ser Reviewed-by: Georg Lehmann Reviewed-by: Daniel Stone Part-of: --- src/vulkan/wsi/wsi_common_wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c index 9463a9c55bc..6c77ce42781 100644 --- a/src/vulkan/wsi/wsi_common_wayland.c +++ b/src/vulkan/wsi/wsi_common_wayland.c @@ -449,7 +449,7 @@ wl_drm_format_for_vk_format(VkFormat vk_format, bool alpha) default: assert(!"Unsupported Vulkan format"); - return 0; + return DRM_FORMAT_INVALID; } }