[Mesa-dev] [PATCH 07/10] i965: Handle __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS flag
Ian Romanick
idr at freedesktop.org
Wed Oct 30 02:07:05 CET 2013
From: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/drivers/dri/i965/brw_context.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 2bb52b6..9d5f348 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -516,7 +516,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 NULL;
}
@@ -691,6 +693,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);
--
1.8.1.4
More information about the mesa-dev
mailing list