summaryrefslogtreecommitdiffstats
path: root/src/glx/drisw_glx.c
diff options
context:
space:
mode:
authorGrigori Goronzy <[email protected]>2017-08-03 20:07:58 +0200
committerAdam Jackson <[email protected]>2019-03-12 19:12:21 -0400
commitacfd88204e886e671da97b895fd2d1ee39b61256 (patch)
tree811416e4fb64af31378e621ba06ee9e37d299378 /src/glx/drisw_glx.c
parentae77f1236862e73c1ac250898924c648d481bda4 (diff)
glx: add support for GLX_ARB_create_context_no_error (v3)
v2: Only reject no-error contexts for too-old GL if we're actually trying to create a no-error context (Adam Jackson) v3: Fix share contexts (Adam Jackson) Reviewed-by: Adam Jackson <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glx/drisw_glx.c')
-rw-r--r--src/glx/drisw_glx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
index 48c03ca42e0..c63b097a71a 100644
--- a/src/glx/drisw_glx.c
+++ b/src/glx/drisw_glx.c
@@ -599,6 +599,9 @@ drisw_create_context_attribs(struct glx_screen *base,
&api, &reset, &release, error))
return NULL;
+ if (!dri2_check_no_error(flags, shareList, major_ver, error))
+ return NULL;
+
/* Check the renderType value */
if (!validate_renderType_against_config(config_base, renderType)) {
return NULL;
@@ -641,6 +644,9 @@ drisw_create_context_attribs(struct glx_screen *base,
* GLX_CONTEXT_*_BIT values.
*/
ctx_attribs[num_ctx_attribs++] = flags;
+
+ if (flags & __DRI_CTX_FLAG_NO_ERROR)
+ pcp->base.noError = GL_TRUE;
}
pcp->base.renderType = renderType;