diff options
author | Grigori Goronzy <greg@chown.ath.cx> | 2017-06-29 04:39:22 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@chown.ath.cx> | 2017-07-14 21:23:40 +0200 |
commit | 2bbe235053ca28334eaf4ed7214e2f35b9733bd8 (patch) | |
tree | f8d540ccb6556b52b992d61db6eb36b6cf712908 /src/gallium/state_trackers | |
parent | 7299e82fa444c86f4c5e22593424715454182e9a (diff) |
st/mesa: Add support for KHR_no_error flag
Add a new context flag and plumb it through the various layers of the
context creation code to set up dispatch tables for the no-error mode.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/dri_context.c b/src/gallium/state_trackers/dri/dri_context.c index e25f186deb..275c0d4586 100644 --- a/src/gallium/state_trackers/dri/dri_context.c +++ b/src/gallium/state_trackers/dri/dri_context.c @@ -107,6 +107,9 @@ dri_create_context(gl_api api, const struct gl_config * visual, if (notify_reset) attribs.flags |= ST_CONTEXT_FLAG_RESET_NOTIFICATION_ENABLED; + if (flags & __DRI_CTX_FLAG_NO_ERROR) + attribs.flags |= ST_CONTEXT_FLAG_NO_ERROR; + if (sharedContextPrivate) { st_share = ((struct dri_context *)sharedContextPrivate)->st; } |