summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2012-09-11 10:31:13 +0300
committerIan Romanick <ian.d.romanick@intel.com>2013-11-07 17:40:25 -0800
commit15c3bac3d00694245168586fee2d257920895a2f (patch)
tree80d2c563879b6116f51ea3c7b7dc72c41a6e6c40 /src
parent7b140d1bdaf07badebdc5ac222ab4ff4d182ebec (diff)
downloadexternal_mesa3d-15c3bac3d00694245168586fee2d257920895a2f.zip
external_mesa3d-15c3bac3d00694245168586fee2d257920895a2f.tar.gz
external_mesa3d-15c3bac3d00694245168586fee2d257920895a2f.tar.bz2
i965: Handle __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS flag
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 3e6dade..44a6de7 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -580,7 +580,9 @@ brwCreateContext(gl_api api,
struct dd_function_table functions;
struct gl_config visual;
- if (flags & ~(__DRI_CTX_FLAG_DEBUG | __DRI_CTX_FLAG_FORWARD_COMPATIBLE)) {
+ if (flags & ~(__DRI_CTX_FLAG_DEBUG
+ | __DRI_CTX_FLAG_FORWARD_COMPATIBLE
+ | __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS)) {
*dri_ctx_error = __DRI_CTX_ERROR_UNKNOWN_FLAG;
return false;
}
@@ -755,6 +757,9 @@ brwCreateContext(gl_api api,
brw->perf_debug = true;
}
+ if ((flags & __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS) != 0)
+ ctx->Const.ContextFlags |= GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB;
+
brw_fs_alloc_reg_sets(brw);
brw_vec4_alloc_reg_set(brw);