From 9c096e23c001d558aa18bb4628ec8d6c6ecb89b5 Mon Sep 17 00:00:00 2001 From: Robert Beckett Date: Tue, 4 Jul 2023 14:16:18 +0100 Subject: [PATCH] vulkan/wsi: fix force_bgra8_unorm_first fixes: 7c16a1ae vulkan/wsi: Add a driconf option to force WSI to advertise BGRA8_UNORM first Signed-off-by: Robert Beckett Part-of: --- src/vulkan/wsi/wsi_common_wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c index c749a7d8437..861be6c94c6 100644 --- a/src/vulkan/wsi/wsi_common_wayland.c +++ b/src/vulkan/wsi/wsi_common_wayland.c @@ -928,7 +928,7 @@ wsi_wl_display_init(struct wsi_wayland *wsi_wl, /* Find BGRA8_UNORM in the list and swap it to the first position if we * can find it. Some apps get confused if SRGB is first in the list. */ - struct wsi_wl_format *first_fmt = u_vector_head(&display->formats); + struct wsi_wl_format *first_fmt = u_vector_tail(&display->formats); struct wsi_wl_format *f, tmp_fmt; f = find_format(&display->formats, VK_FORMAT_B8G8R8A8_UNORM); if (f) {