From 171c9081d11b0cee105416ff2234664c5665029a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 29 Nov 2022 09:47:40 +0100 Subject: render/vulkan: add more 8 bits per channel formats --- render/vulkan/pixel_format.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'render/vulkan') diff --git a/render/vulkan/pixel_format.c b/render/vulkan/pixel_format.c index 911cd217..72de40c7 100644 --- a/render/vulkan/pixel_format.c +++ b/render/vulkan/pixel_format.c @@ -10,6 +10,26 @@ static const struct wlr_vk_format formats[] = { // order compared to the DRM formats, because DRM format channel order // is little-endian while Vulkan format channel order is in memory byte // order. + { + .drm = DRM_FORMAT_R8, + .vk = VK_FORMAT_R8_SRGB, + .is_srgb = true, + }, + { + .drm = DRM_FORMAT_GR88, + .vk = VK_FORMAT_R8G8_SRGB, + .is_srgb = true, + }, + { + .drm = DRM_FORMAT_RGB888, + .vk = VK_FORMAT_B8G8R8_SRGB, + .is_srgb = true, + }, + { + .drm = DRM_FORMAT_BGR888, + .vk = VK_FORMAT_R8G8B8_SRGB, + .is_srgb = true, + }, { .drm = DRM_FORMAT_ARGB8888, .vk = VK_FORMAT_B8G8R8A8_SRGB, -- cgit v1.2.3