i956: set RobustAccess true when is supported
authorTapani Pälli <tapani.palli@intel.com>
Tue, 25 Oct 2016 10:42:12 +0000 (13:42 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 27 Oct 2016 04:06:41 +0000 (07:06 +0300)
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/mesa/drivers/dri/i965/brw_context.c

index af8ed2cc31aec62325230f550dafcd22e54d0f19..3085a9855172bb7ce770c2529b144c58489f870d 100644 (file)
@@ -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);