From 77d7cfea1060ebf15c3a0ae84e0f15a7e79a1712 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Mon, 11 Feb 2019 10:01:55 -0500 Subject: [PATCH] eglimage: Add some more defines This allow building on advertised version of libdrm drm_fourcc.h files. Fixes #549 --- gst-libs/gst/gl/egl/gsteglimage.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gst-libs/gst/gl/egl/gsteglimage.c b/gst-libs/gst/gl/egl/gsteglimage.c index a74526bda0..7cc25896a2 100644 --- a/gst-libs/gst/gl/egl/gsteglimage.c +++ b/gst-libs/gst/gl/egl/gsteglimage.c @@ -86,6 +86,34 @@ #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274 #endif +#ifndef DRM_FORMAT_MOD_LINEAR +#define DRM_FORMAT_MOD_LINEAR 0ULL +#endif + +#ifndef EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT +#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443 +#endif + +#ifndef EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT +#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444 +#endif + +#ifndef EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT +#define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445 +#endif + +#ifndef EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT +#define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446 +#endif + +#ifndef EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT +#define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447 +#endif + +#ifndef EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT +#define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448 +#endif + #if !GST_GL_HAVE_EGLUINT64KHR typedef khronos_uint64_t EGLuint64KHR; #endif