blob: 88434893ee07cdfdaa3c921c8bc80607546c4d2a [file] [log] [blame]
Andrew Geissler26e4bea2020-11-30 19:54:03 -06001From 214f1895db14e3a88d5b2b3b6c844af3890e2eba Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 15 Jul 2018 00:48:38 -0700
Andrew Geissler26e4bea2020-11-30 19:54:03 -06004Subject: [PATCH] Add EGL_IMG_context_priority related defines
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08005
6These defines are needed for compiling weston 4.x
7taken from Khronos headers
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 interface/khronos/include/EGL/eglext.h | 8 ++++++++
12 1 file changed, 8 insertions(+)
13
14diff --git a/interface/khronos/include/EGL/eglext.h b/interface/khronos/include/EGL/eglext.h
15index 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 */