diff options
author | wm4 <wm4@nowhere> | 2019-09-27 13:05:21 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-27 13:05:21 +0200 |
commit | c3687b9eaaaddf8dae075e903fd464b503229d07 (patch) | |
tree | 8fb91470eb85d0e2a9ddf6549adff046161066bd | |
parent | d8f02dc5d589758caaaf2ea87926932df5895197 (diff) | |
download | mpv-c3687b9eaaaddf8dae075e903fd464b503229d07.tar.bz2 mpv-c3687b9eaaaddf8dae075e903fd464b503229d07.tar.xz |
hwdec_vaapi_gl: add missing compatibility defines
At first, this code used only 1 plane, so the compatibility stuff was
sufficient. But then use of planes 1 and 2 was added, without extending
the compatibility stuff.
I think I've seen a case recently where this broke the build and caused
users to apply invalid fixes, but I don't remember where.
It's possible that I didn't get all defines that are needed.
-rw-r--r-- | video/out/hwdec/hwdec_vaapi_gl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/hwdec/hwdec_vaapi_gl.c b/video/out/hwdec/hwdec_vaapi_gl.c index b473a49676..281283e252 100644 --- a/video/out/hwdec/hwdec_vaapi_gl.c +++ b/video/out/hwdec/hwdec_vaapi_gl.c @@ -35,6 +35,12 @@ typedef void *EGLImageKHR; #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273 #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274 +#define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275 +#define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276 +#define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277 +#define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278 +#define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279 +#define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A #endif struct vaapi_gl_mapper_priv { |