aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/vulkan/pixel_format.c60
1 files changed, 60 insertions, 0 deletions
diff --git a/render/vulkan/pixel_format.c b/render/vulkan/pixel_format.c
index 72de40c7..4d49f32f 100644
--- a/render/vulkan/pixel_format.c
+++ b/render/vulkan/pixel_format.c
@@ -55,9 +55,69 @@ static const struct wlr_vk_format formats[] = {
// little endian systems.
#if WLR_LITTLE_ENDIAN
{
+ .drm = DRM_FORMAT_RGBA4444,
+ .vk = VK_FORMAT_R4G4B4A4_UNORM_PACK16,
+ },
+ {
+ .drm = DRM_FORMAT_RGBX4444,
+ .vk = VK_FORMAT_R4G4B4A4_UNORM_PACK16,
+ },
+ {
+ .drm = DRM_FORMAT_BGRA4444,
+ .vk = VK_FORMAT_B4G4R4A4_UNORM_PACK16,
+ },
+ {
+ .drm = DRM_FORMAT_BGRX4444,
+ .vk = VK_FORMAT_B4G4R4A4_UNORM_PACK16,
+ },
+ {
.drm = DRM_FORMAT_RGB565,
.vk = VK_FORMAT_R5G6B5_UNORM_PACK16,
},
+ {
+ .drm = DRM_FORMAT_BGR565,
+ .vk = VK_FORMAT_B5G6R5_UNORM_PACK16,
+ },
+ {
+ .drm = DRM_FORMAT_RGBA5551,
+ .vk = VK_FORMAT_R5G5B5A1_UNORM_PACK16,
+ },
+ {
+ .drm = DRM_FORMAT_RGBX5551,
+ .vk = VK_FORMAT_R5G5B5A1_UNORM_PACK16,
+ },
+ {
+ .drm = DRM_FORMAT_BGRA5551,
+ .vk = VK_FORMAT_B5G5R5A1_UNORM_PACK16,
+ },
+ {
+ .drm = DRM_FORMAT_BGRX5551,
+ .vk = VK_FORMAT_B5G5R5A1_UNORM_PACK16,
+ },
+ {
+ .drm = DRM_FORMAT_ARGB1555,
+ .vk = VK_FORMAT_A1R5G5B5_UNORM_PACK16,
+ },
+ {
+ .drm = DRM_FORMAT_XRGB1555,
+ .vk = VK_FORMAT_A1R5G5B5_UNORM_PACK16,
+ },
+ {
+ .drm = DRM_FORMAT_ARGB2101010,
+ .vk = VK_FORMAT_A2R10G10B10_UNORM_PACK32,
+ },
+ {
+ .drm = DRM_FORMAT_XRGB2101010,
+ .vk = VK_FORMAT_A2R10G10B10_UNORM_PACK32,
+ },
+ {
+ .drm = DRM_FORMAT_ABGR2101010,
+ .vk = VK_FORMAT_A2B10G10R10_UNORM_PACK32,
+ },
+ {
+ .drm = DRM_FORMAT_XBGR2101010,
+ .vk = VK_FORMAT_A2B10G10R10_UNORM_PACK32,
+ },
#endif
};