hwdec-vaegl.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. diff --git a/video/out/opengl/hwdec_vaegl.c b/video/out/opengl/hwdec_vaegl.c
  2. index b4587c5..d852fdf 100644
  3. --- a/video/out/opengl/hwdec_vaegl.c
  4. +++ b/video/out/opengl/hwdec_vaegl.c
  5. @@ -52,6 +52,35 @@ typedef void *EGLImageKHR;
  6. #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
  7. #endif
  8. +#ifndef EGL_EXT_image_dma_buf_import_modifiers
  9. +#define EGL_EXT_image_dma_buf_import_modifiers 1
  10. +#define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440
  11. +#define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441
  12. +#define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442
  13. +#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
  14. +#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
  15. +#define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
  16. +#define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
  17. +#define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
  18. +#define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
  19. +#define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449
  20. +#define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
  21. +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
  22. +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
  23. +#ifdef EGL_EGLEXT_PROTOTYPES
  24. +EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufFormatsEXT (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
  25. +EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufModifiersEXT (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
  26. +#endif
  27. +#endif /* EGL_EXT_image_dma_buf_import_modifiers */
  28. +
  29. +#ifndef EGL_EXT_image_implicit_sync_control
  30. +#define EGL_EXT_image_implicit_sync_control 1
  31. +#define EGL_IMPORT_SYNC_TYPE_EXT 0x3470
  32. +#define EGL_IMPORT_IMPLICIT_SYNC_EXT 0x3471
  33. +#define EGL_IMPORT_EXPLICIT_SYNC_EXT 0x3472
  34. +#endif /* EGL_EXT_image_implicit_sync_control */
  35. +
  36. +
  37. #if HAVE_VAAPI_X11
  38. #include <va/va_x11.h>