blob: 94566dc26c417d9198e46034063511f6e43f7855 [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---
Patrick Williams520786c2023-06-25 16:20:36 -050011Upstream-Status: Pending
12
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013 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 */