Mesa (master): i956: set RobustAccess true when is supported

Tapani Pälli tpalli at kemper.freedesktop.org
Thu Oct 27 05:48:42 UTC 2016


Module: Mesa
Branch: master
Commit: fe764477b04866cf4598005e94b374dcbca379e0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fe764477b04866cf4598005e94b374dcbca379e0

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Tue Oct 25 13:42:12 2016 +0300

i956: set RobustAccess true when is supported

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>

---

 src/mesa/drivers/dri/i965/brw_context.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index af8ed2c..3085a98 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -1107,8 +1107,10 @@ brwCreateContext(gl_api api,
       brw->perf_debug = true;
    }
 
-   if ((flags & __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS) != 0)
+   if ((flags & __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS) != 0) {
       ctx->Const.ContextFlags |= GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB;
+      ctx->Const.RobustAccess = GL_TRUE;
+   }
 
    if (INTEL_DEBUG & DEBUG_SHADER_TIME)
       brw_init_shader_time(brw);




More information about the mesa-commit mailing list