Mesa (main): vulkan/wsi/wayland: use DRM_FORMAT_INVALID
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 1 08:47:20 UTC 2022
Module: Mesa
Branch: main
Commit: 5a82232e5cb43d753339c77ab02f14d2621f1687
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a82232e5cb43d753339c77ab02f14d2621f1687
Author: Simon Ser <contact at emersion.fr>
Date: Thu Jan 20 12:08:20 2022 +0100
vulkan/wsi/wayland: use DRM_FORMAT_INVALID
Instead of using the magic value 0, use the define.
Signed-off-by: Simon Ser <contact at emersion.fr>
Reviewed-by: Georg Lehmann <dadschoorse at gmail.com>
Reviewed-by: Daniel Stone <daniels at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14634>
---
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;
}
}
More information about the mesa-commit
mailing list