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

Mark Janes mark.a.janes at intel.com
Fri Dec 18 16:56:31 PST 2015


Reviewed-by: Mark Janes <mark.a.janes at intel.com>
Tested-by: Mark Janes <mark.a.janes at intel.com>

Emil Velikov <emil.l.velikov at gmail.com> writes:

> 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