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>
This commit is contained in:
Jonas Ådahl 2022-01-07 19:21:39 +01:00 committed by Marge Bot
parent 13f35ab064
commit 5523242eb9

View File

@ -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 */