aboutsummaryrefslogtreecommitdiff
path: root/render/vulkan/pixel_format.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-29 09:47:40 +0100
committerSimon Ser <contact@emersion.fr>2022-12-02 10:28:52 +0100
commit171c9081d11b0cee105416ff2234664c5665029a (patch)
tree7f89fcf4e4b0db20475f600e635fdbdd36a0a9e9 /render/vulkan/pixel_format.c
parente31c741d2a2a11d0262df1735095d165c1e39cb9 (diff)
render/vulkan: add more 8 bits per channel formats
Diffstat (limited to 'render/vulkan/pixel_format.c')
-rw-r--r--render/vulkan/pixel_format.c20
1 files changed, 20 insertions, 0 deletions
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
@@ -11,6 +11,26 @@ static const struct wlr_vk_format formats[] = {
// 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,
.is_srgb = true,