i915: correctly parse/set the context flags
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 18 Dec 2015 15:28:03 +0000 (15:28 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 22 Jan 2016 11:54:01 +0000 (11:54 +0000)
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@intel.com>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Cc: Kristian Høgsberg <krh@bitplanet.net>
Cc: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Mark Janes <mark.a.janes@intel.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
src/mesa/drivers/dri/i915/intel_context.c

index 3f429f25d105cb43b7c883ee4a1cb03479228fab..e5a3f003eac075f9922e26e96acb1482317d102d 100644 (file)
@@ -427,6 +427,8 @@ intelInitContext(struct intel_context *intel,
       return false;
    }
 
+   driContextSetFlags(&intel->ctx, flags);
+
    driContextPriv->driverPrivate = intel;
    intel->driContext = driContextPriv;