summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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];