Re: [Intel-gfx] [PATCH 2/6] drm/i915: simplify testing for the global default context

2015-12-22 Thread Dave Gordon
On 22/12/15 09:05, Chris Wilson wrote: On Mon, Dec 21, 2015 at 04:04:41PM +, 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 con

Re: [Intel-gfx] [PATCH 2/6] drm/i915: simplify testing for the global default context

2015-12-22 Thread Chris Wilson
On Mon, Dec 21, 2015 at 04:04:41PM +, 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_globa

[Intel-gfx] [PATCH 2/6] drm/i915: simplify testing for the global default context

2015-12-21 Thread Dave Gordon
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