Re: [Intel-gfx] [RFC] drm/i915: Introduce i915_alloc_sg_table

2016-10-11 Thread Tvrtko Ursulin
On 10/10/2016 12:05, Chris Wilson wrote: On Mon, Oct 10, 2016 at 11:53:18AM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin There are currently two places in the code which build the sg table for the object backing store and in the future there will be one more. Consolidate that into a sin

Re: [Intel-gfx] [RFC] drm/i915: Introduce i915_alloc_sg_table

2016-10-10 Thread Chris Wilson
On Mon, Oct 10, 2016 at 11:53:18AM +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > There are currently two places in the code which build the > sg table for the object backing store and in the future there > will be one more. > > Consolidate that into a single helper which takes a caller