diff options
author | Dave Airlie <airlied@redhat.com> | 2021-11-25 14:07:43 +1000 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2021-11-25 23:11:37 +0100 |
commit | 8ed1368501d5259973b0334722f09112b18ca203 (patch) | |
tree | 30ea46de7d065563be008f31875d9bc66513d134 /video/out | |
parent | b8926dd4840d3612065c75d51a2f6b0fd96936fa (diff) | |
download | mpv-8ed1368501d5259973b0334722f09112b18ca203.tar.bz2 mpv-8ed1368501d5259973b0334722f09112b18ca203.tar.xz |
vo_gpu: hwdec_vaapi: avoid drm_fourcc.h dependency
Suggested by haasn
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/hwdec/hwdec_vaapi_gl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/hwdec/hwdec_vaapi_gl.c b/video/out/hwdec/hwdec_vaapi_gl.c index 482082cd80..961771af80 100644 --- a/video/out/hwdec/hwdec_vaapi_gl.c +++ b/video/out/hwdec/hwdec_vaapi_gl.c @@ -19,12 +19,15 @@ #include "hwdec_vaapi.h" #include <EGL/egl.h> -#include <drm_fourcc.h> #include "video/out/opengl/ra_gl.h" typedef void* GLeglImageOES; typedef void *EGLImageKHR; +#ifndef DRM_FORMAT_MOD_INVALID +#define DRM_FORMAT_MOD_INVALID ((UINT64_C(1) << 56) - 1) +#endif + // Any EGL_EXT_image_dma_buf_import definitions used in this source file. #define EGL_LINUX_DMA_BUF_EXT 0x3270 #define EGL_LINUX_DRM_FOURCC_EXT 0x3271 |