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