0063-vulkan-wsi-enable-additional-formats-for-Display.patch 914 B

12345678910111213141516171819202122232425
  1. From 4cd52452e7c525e69005989c3c7376158d9d3c7e Mon Sep 17 00:00:00 2001
  2. From: brendan King <Brendan.King@imgtec.com>
  3. Date: Tue, 3 Aug 2021 15:44:57 +0100
  4. Subject: [PATCH] vulkan/wsi: enable additional formats for Display
  5. Add VK_FORMAT_R5G6B5_UNORM_PACK16.
  6. This is for compatibility with IMG WSI.
  7. ---
  8. src/vulkan/wsi/wsi_common_display.c | 1 +
  9. 1 file changed, 1 insertion(+)
  10. diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c
  11. index f135b4e..298c788 100644
  12. --- a/src/vulkan/wsi/wsi_common_display.c
  13. +++ b/src/vulkan/wsi/wsi_common_display.c
  14. @@ -900,6 +900,7 @@ static const struct {
  15. } available_surface_formats[] = {
  16. { .format = VK_FORMAT_B8G8R8A8_SRGB, .drm_format = DRM_FORMAT_XRGB8888 },
  17. { .format = VK_FORMAT_B8G8R8A8_UNORM, .drm_format = DRM_FORMAT_XRGB8888 },
  18. + { .format = VK_FORMAT_R5G6B5_UNORM_PACK16, .drm_format = DRM_FORMAT_RGB565 },
  19. };
  20. static void