[Piglit] [PATCH] egl-util: Define EGL_KHR_gl_colorspace symbols for older distros.

Vinson Lee vlee at freedesktop.org
Thu Jul 9 22:51:57 PDT 2015


Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/egl/egl-util.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/tests/egl/egl-util.h b/tests/egl/egl-util.h
index 249319d..614e586 100644
--- a/tests/egl/egl-util.h
+++ b/tests/egl/egl-util.h
@@ -15,6 +15,13 @@
 #include <EGL/egl.h>
 #include <EGL/eglext.h>
 
+#ifndef EGL_KHR_gl_colorspace
+#define EGL_KHR_gl_colorspace 1
+#define EGL_GL_COLORSPACE_KHR             0x309D
+#define EGL_GL_COLORSPACE_SRGB_KHR        0x3089
+#define EGL_GL_COLORSPACE_LINEAR_KHR      0x308A
+#endif /* EGL_KHR_gl_colorspace */
+
 struct egl_state {
 	Display *dpy;
 	Window win;
-- 
1.7.1



More information about the Piglit mailing list