0024-userland-Sync-needed-defines-for-weston-build.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 4a3e515d3ea7ff0fc4063b9677b056af4ee7a3f6 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Wed, 2 Dec 2020 14:28:01 -0800
  4. Subject: [PATCH] userland: Sync needed defines for weston build
  5. eglext.h from userland is not sufficient to compile latest weston,
  6. therefore import needed defines and typedefs from latest mesa
  7. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  8. ---
  9. Upstream-Status: Pending
  10. interface/khronos/include/EGL/eglext.h | 14 ++++++++++++++
  11. 1 file changed, 14 insertions(+)
  12. diff --git a/interface/khronos/include/EGL/eglext.h b/interface/khronos/include/EGL/eglext.h
  13. index 6842bf9..7118e92 100755
  14. --- a/interface/khronos/include/EGL/eglext.h
  15. +++ b/interface/khronos/include/EGL/eglext.h
  16. @@ -225,6 +225,20 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, st
  17. #endif
  18. +typedef void* EGLSyncKHR;
  19. +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  20. +typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
  21. +#ifndef EGL_ANDROID_native_fence_sync
  22. +#define EGL_ANDROID_native_fence_sync 1
  23. +#define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
  24. +#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
  25. +#define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
  26. +#define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
  27. +typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  28. +#ifdef EGL_EGLEXT_PROTOTYPES
  29. +EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
  30. +#endif
  31. +#endif /* EGL_ANDROID_native_fence_sync */
  32. #ifdef __cplusplus
  33. }