From 3cabd11f9b46c8f7ec6f80e8f75b3c3012118ad8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 7 Dec 2019 14:01:10 +0100 Subject: vo_gpu: hwdec_vaapi_gl: add missing PLANE3 defines as well On systems whose EGL headers do not define these extensions, the build still failed due to missing ..._PLANE3_... defines. Although we supplied missing EGL_LINUX_DMA_BUF_EXT defines manually, the PLANE3 ones are actually from a separate extension, which explains why they were not added to the fallback defines in the first place. Add them, now it builds without the eglext.h include. See #6838. --- video/out/hwdec/hwdec_vaapi_gl.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/video/out/hwdec/hwdec_vaapi_gl.c b/video/out/hwdec/hwdec_vaapi_gl.c index 281283e252..261099a248 100644 --- a/video/out/hwdec/hwdec_vaapi_gl.c +++ b/video/out/hwdec/hwdec_vaapi_gl.c @@ -29,6 +29,7 @@ typedef void* GLeglImageOES; typedef void *EGLImageKHR; #endif +// Any EGL_EXT_image_dma_buf_import definitions used in this source file. #ifndef EGL_LINUX_DMA_BUF_EXT #define EGL_LINUX_DMA_BUF_EXT 0x3270 #define EGL_LINUX_DRM_FOURCC_EXT 0x3271 @@ -43,6 +44,13 @@ typedef void *EGLImageKHR; #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A #endif +// Any EGL_EXT_image_dma_buf_import definitions used in this source file. +#ifndef EGL_DMA_BUF_PLANE3_FD_EXT +#define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440 +#define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441 +#define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442 +#endif + struct vaapi_gl_mapper_priv { GLuint gl_textures[4]; EGLImageKHR images[4]; -- cgit v1.2.3