From: Ian Romanick Date: Tue, 11 Sep 2012 07:31:13 +0000 (+0300) Subject: i965: Handle __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS flag X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15c3bac3d00694245168586fee2d257920895a2f;p=mesa.git i965: Handle __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS flag Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 3e6dade613d..44a6de7f15a 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);