[Intel-gfx] [PATCH 2/6] drm/i915: simplify testing for the global default context
Chris Wilson
chris at chris-wilson.co.uk
Tue Dec 22 01:05:39 PST 2015
On Mon, Dec 21, 2015 at 04:04:41PM +0000, Dave Gordon wrote:
> There are quite a number of places where the driver tests whether a
> given context is or is not the global default context, usually by
> checking whether an engine's default_pointer points to the context. Now
> that we have a 'is_global_default' flag in the context itself, these can
> be rewritten to use it. This makes the logic more obvious, and usually
> saves at least one memory reference.
All these places do not need to exist. Please just fix execlists.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list