[mutter] wayland/dma-buf: Define fallback EGL_DRM_RENDER_NODE_FILE_EXT



commit 5523242eb9a134865d5d3090954bcf0ae4e2f73f
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Fri Jan 7 19:21:39 2022 +0100

    wayland/dma-buf: Define fallback EGL_DRM_RENDER_NODE_FILE_EXT
    
    If the EGL header is not new enough, it will not contain that relatively
    new macro definition, so to avoid breaking compilation, define it
    ourselves for now. Should be possible to remove after some time.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2214>

 src/wayland/meta-wayland-dma-buf.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/wayland/meta-wayland-dma-buf.c b/src/wayland/meta-wayland-dma-buf.c
index f7b334b496..41840074ff 100644
--- a/src/wayland/meta-wayland-dma-buf.c
+++ b/src/wayland/meta-wayland-dma-buf.c
@@ -67,6 +67,10 @@
 #define DRM_FORMAT_MOD_INVALID ((1ULL << 56) - 1)
 #endif
 
+#ifndef EGL_DRM_RENDER_NODE_FILE_EXT
+#define EGL_DRM_RENDER_NODE_FILE_EXT 0x3377
+#endif
+
 #define META_WAYLAND_DMA_BUF_MAX_FDS 4
 
 /* Compatible with zwp_linux_dmabuf_feedback_v1.tranche_flags */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]