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