summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-12-07 14:01:10 +0100
committerwm4 <wm4@nowhere>2019-12-07 14:01:10 +0100
commit3cabd11f9b46c8f7ec6f80e8f75b3c3012118ad8 (patch)
treefea2a6c2188288804e41d8fd68980ebb9edb4a6b
parent23289a452f011a5ab5de2bdea460f35016944ebb (diff)
downloadmpv-3cabd11f9b46c8f7ec6f80e8f75b3c3012118ad8.tar.bz2
mpv-3cabd11f9b46c8f7ec6f80e8f75b3c3012118ad8.tar.xz
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.
-rw-r--r--video/out/hwdec/hwdec_vaapi_gl.c8
1 files changed, 8 insertions, 0 deletions
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];