Module: Mesa
Branch: main
Commit: 09ae669fc5fdf9fbb70e12e93cb11be5670fbbbd
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=09ae669fc5fdf9fbb70e12e93cb11be5670fbbbd

Author: Erico Nunes <nunes.er...@gmail.com>
Date:   Thu Dec  7 14:37:32 2023 +0100

panvk: Support modifiers for Wayland WSI

If we don't send modifiers, Wayland compositors end up with
DRM_FORMAT_MOD_INVALID which may prevent them from e.g. assigning an
overlay plane to an application.

Signed-off-by: Erico Nunes <nunes.er...@gmail.com>
Acked-by: Boris Brezillon <boris.brezil...@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26568>

---

 src/panfrost/vulkan/panvk_wsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/panfrost/vulkan/panvk_wsi.c b/src/panfrost/vulkan/panvk_wsi.c
index d121dad8980..fd98b225226 100644
--- a/src/panfrost/vulkan/panvk_wsi.c
+++ b/src/panfrost/vulkan/panvk_wsi.c
@@ -50,7 +50,7 @@ panvk_wsi_init(struct panvk_physical_device *physical_device)
    if (result != VK_SUCCESS)
       return result;
 
-   physical_device->wsi_device.supports_modifiers = false;
+   physical_device->wsi_device.supports_modifiers = true;
 
    physical_device->vk.wsi_device = &physical_device->wsi_device;
 

Reply via email to