mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 20:03:10 +02:00
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.
This commit is contained in:
parent
23289a452f
commit
3cabd11f9b
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user