summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-01-20 12:08:20 +0100
committerMarge Bot <emma+marge@anholt.net>2022-02-01 08:00:22 +0000
commit5a82232e5cb43d753339c77ab02f14d2621f1687 (patch)
treee1a5c15fcfc7daade9a24f91076230c8a99c717d
parentfda2aecb8b8329cccb5861e2e151efdeb407a6c0 (diff)
vulkan/wsi/wayland: use DRM_FORMAT_INVALID
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>
-rw-r--r--src/vulkan/wsi/wsi_common_wayland.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}