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

Chris Wilson chris at chris-wilson.co.uk
Mon Oct 10 11:05:26 UTC 2016


On Mon, Oct 10, 2016 at 11:53:18AM +0100, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> 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
> defined context and callbacks.

Not getting warm fuzzy feelings about it. To surmise, what you really
want is a common method of applying sg coalescing whilst iteratively
building the sg list.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list