summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-05-12 00:44:56 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-06-05 19:44:33 +0200
commit706466f4619b76f2475120f187c34d01ab5aa727 (patch)
tree921b8605893536aaa4dcc528a5299d9dc84d5d4f
parentf9f894447e4e7442d5dfa489bb43f2823e2fc71d (diff)
downloadexternal_mesa3d-706466f4619b76f2475120f187c34d01ab5aa727.zip
external_mesa3d-706466f4619b76f2475120f187c34d01ab5aa727.tar.gz
external_mesa3d-706466f4619b76f2475120f187c34d01ab5aa727.tar.bz2
egl: add context attribs from EGL 1.5
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Chad Versace <chad.versace@intel.com>
-rw-r--r--src/egl/main/eglcontext.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c
index e50b8fb..e767f4b 100644
--- a/src/egl/main/eglcontext.c
+++ b/src/egl/main/eglcontext.c
@@ -198,6 +198,36 @@ _eglParseContextAttribList(_EGLContext *ctx, _EGLDisplay *dpy,
ctx->Flags |= EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR;
break;
+ case EGL_CONTEXT_OPENGL_ROBUST_ACCESS:
+ if (dpy->Version < 15) {
+ err = EGL_BAD_ATTRIBUTE;
+ break;
+ }
+
+ if (val == EGL_TRUE)
+ ctx->Flags |= EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR;
+ break;
+
+ case EGL_CONTEXT_OPENGL_DEBUG:
+ if (dpy->Version < 15) {
+ err = EGL_BAD_ATTRIBUTE;
+ break;
+ }
+
+ if (val == EGL_TRUE)
+ ctx->Flags |= EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR;
+ break;
+
+ case EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE:
+ if (dpy->Version < 15) {
+ err = EGL_BAD_ATTRIBUTE;
+ break;
+ }
+
+ if (val == EGL_TRUE)
+ ctx->Flags |= EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR;
+ break;
+
default:
err = EGL_BAD_ATTRIBUTE;
break;