summarylogtreecommitdiffstats
path: root/0052-vulkan-wsi-enable-additional-formats-for-Display.patch
blob: 1c2cf38ece5f7cd4d3baf2c18538272baf8e21d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 4dff02e1f762c16fbbee977a516d59e40b507aed Mon Sep 17 00:00:00 2001
From: brendan King <Brendan.King@imgtec.com>
Date: Tue, 3 Aug 2021 15:44:57 +0100
Subject: [PATCH] vulkan/wsi: enable additional formats for Display

Add VK_FORMAT_R5G6B5_UNORM_PACK16.

This is for compatibility with IMG WSI.

---
 src/vulkan/wsi/wsi_common_display.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c
index 5b020f9..66052b7 100644
--- a/src/vulkan/wsi/wsi_common_display.c
+++ b/src/vulkan/wsi/wsi_common_display.c
@@ -1134,6 +1134,7 @@ static const struct {
 } available_surface_formats[] = {
    { .format = VK_FORMAT_B8G8R8A8_SRGB, .drm_format = DRM_FORMAT_XRGB8888 },
    { .format = VK_FORMAT_B8G8R8A8_UNORM, .drm_format = DRM_FORMAT_XRGB8888 },
+   { .format = VK_FORMAT_R5G6B5_UNORM_PACK16, .drm_format = DRM_FORMAT_RGB565 },
 };
 
 static void