0018-Add-EGL_IMG_context_priority-related-defines.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 214f1895db14e3a88d5b2b3b6c844af3890e2eba Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Sun, 15 Jul 2018 00:48:38 -0700
  4. Subject: [PATCH] Add EGL_IMG_context_priority related defines
  5. These defines are needed for compiling weston 4.x
  6. taken from Khronos headers
  7. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  8. ---
  9. Upstream-Status: Pending
  10. interface/khronos/include/EGL/eglext.h | 8 ++++++++
  11. 1 file changed, 8 insertions(+)
  12. diff --git a/interface/khronos/include/EGL/eglext.h b/interface/khronos/include/EGL/eglext.h
  13. index dcc90ce..6842bf9 100755
  14. --- a/interface/khronos/include/EGL/eglext.h
  15. +++ b/interface/khronos/include/EGL/eglext.h
  16. @@ -93,6 +93,14 @@ typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGL
  17. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
  18. #endif
  19. +#ifndef EGL_IMG_context_priority
  20. +#define EGL_IMG_context_priority 1
  21. +#define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3102
  22. +#define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
  23. +#define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
  24. +#define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
  25. +#endif /* EGL_IMG_context_priority */
  26. +
  27. #ifndef EGL_KHR_vg_parent_image
  28. #define EGL_KHR_vg_parent_image 1
  29. #define EGL_VG_PARENT_IMAGE_KHR 0x30BA /* eglCreateImageKHR target */