Andrew Geissler | 12e5ffb | 2020-12-11 16:26:08 -0600 | [diff] [blame] | 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 | |
| 6 | eglext.h from userland is not sufficient to compile latest weston, |
| 7 | therefore import needed defines and typedefs from latest mesa |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 11 | Upstream-Status: Pending |
| 12 | |
Andrew Geissler | 12e5ffb | 2020-12-11 16:26:08 -0600 | [diff] [blame] | 13 | interface/khronos/include/EGL/eglext.h | 14 ++++++++++++++ |
| 14 | 1 file changed, 14 insertions(+) |
| 15 | |
| 16 | diff --git a/interface/khronos/include/EGL/eglext.h b/interface/khronos/include/EGL/eglext.h |
| 17 | index 6842bf9..7118e92 100755 |
| 18 | --- a/interface/khronos/include/EGL/eglext.h |
| 19 | +++ b/interface/khronos/include/EGL/eglext.h |
| 20 | @@ -225,6 +225,20 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, st |
| 21 | |
| 22 | #endif |
| 23 | |
| 24 | +typedef void* EGLSyncKHR; |
| 25 | +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); |
| 26 | +typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags); |
| 27 | +#ifndef EGL_ANDROID_native_fence_sync |
| 28 | +#define EGL_ANDROID_native_fence_sync 1 |
| 29 | +#define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144 |
| 30 | +#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145 |
| 31 | +#define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146 |
| 32 | +#define EGL_NO_NATIVE_FENCE_FD_ANDROID -1 |
| 33 | +typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync); |
| 34 | +#ifdef EGL_EGLEXT_PROTOTYPES |
| 35 | +EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync); |
| 36 | +#endif |
| 37 | +#endif /* EGL_ANDROID_native_fence_sync */ |
| 38 | |
| 39 | #ifdef __cplusplus |
| 40 | } |