Re: [Intel-gfx] [PATCH 6/9] drm/i915: Move context initialisation to first-use

2016-04-19 Thread Chris Wilson
On Tue, Apr 19, 2016 at 11:15:31AM +0100, Tvrtko Ursulin wrote: > > On 19/04/16 07:49, Chris Wilson wrote: > >Instead of allocating a new request when allocating a context, use the > >request that initiated the allocation to emit the context > >initialisation. > > > >Signed-off-by: Chris Wilson >

Re: [Intel-gfx] [PATCH 6/9] drm/i915: Move context initialisation to first-use

2016-04-19 Thread Tvrtko Ursulin
On 19/04/16 07:49, Chris Wilson wrote: Instead of allocating a new request when allocating a context, use the request that initiated the allocation to emit the context initialisation. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_lrc.c |

Re: [Intel-gfx] [PATCH 6/9] drm/i915: Move context initialisation to first-use

2016-04-19 Thread Tvrtko Ursulin
On 19/04/16 07:49, Chris Wilson wrote: Instead of allocating a new request when allocating a context, use the request that initiated the allocation to emit the context initialisation. A few words on pros and cons? Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h | 1 + d

[Intel-gfx] [PATCH 6/9] drm/i915: Move context initialisation to first-use

2016-04-18 Thread Chris Wilson
Instead of allocating a new request when allocating a context, use the request that initiated the allocation to emit the context initialisation. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_lrc.c | 39 ++-