vulkan/wsi/wayland: use DRM_FORMAT_INVALID
authorSimon Ser <contact@emersion.fr>
Thu, 20 Jan 2022 11:08:20 +0000 (12:08 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Feb 2022 08:00:22 +0000 (08:00 +0000)
Instead of using the magic value 0, use the define.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14634>

src/vulkan/wsi/wsi_common_wayland.c

index 9463a9c..6c77ce4 100644 (file)
@@ -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;
    }
 }