[Mesa-dev] [PATCH] i915: correctly parse/set the context flags

Emil Velikov emil.l.velikov at gmail.com
Fri Dec 18 07:28:03 PST 2015


With an earlier commit we've spit the flags parsing to a separate
function, but forgot to update all the dri modules to use it.

Noticed when we've enabled KHR_debug for every dri module - fdo#93048

Fixes: 38366c0c6e7 "dri_util: Don't assume __DRIcontext->driverPrivate
is a gl_context"
Cc: Mark Janes <mark.a.janes at intel.com>
Cc: "11.0 11.1" <mesa-stable at lists.freedesktop.org>
Cc: Kristian Høgsberg <krh at bitplanet.net>
Cc: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---

Completely untested.
Strictly speaking we can mesa-stable tag back to 10.0, although that is 
a serious overkill.

-Emil

 src/mesa/drivers/dri/i915/intel_context.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i915/intel_context.c b/src/mesa/drivers/dri/i915/intel_context.c
index c780103..fcc5a22 100644
--- a/src/mesa/drivers/dri/i915/intel_context.c
+++ b/src/mesa/drivers/dri/i915/intel_context.c
@@ -426,6 +426,8 @@ intelInitContext(struct intel_context *intel,
       return false;
    }
 
+   driContextSetFlags(&intel->ctx, flags);
+
    driContextPriv->driverPrivate = intel;
    intel->driContext = driContextPriv;
 
-- 
2.6.2



More information about the mesa-dev mailing list