drm/i915: Extract ringbuffer destroy & generalize alloc to take a ringbuf
authorOscar Mateo <oscar.mateo@intel.com>
Thu, 3 Jul 2014 15:28:02 +0000 (16:28 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Jul 2014 10:30:53 +0000 (12:30 +0200)
commit2919d2913c515fcfef6d50a46aae31128d454ce9
tree1d23c9c1db1022d4a7566a2acf54e7fe0a63dee0
parent31b7a88d354e5d7f7d2e68818e4bd8f115ab1ba6
drm/i915: Extract ringbuffer destroy & generalize alloc to take a ringbuf

More prep work: with Execlists, we are going to start creating a lot
of extra ringbuffers soon, so these functions are handy.

No functional changes.

v2: rename allocate/destroy_ring_buffer to alloc/destroy_ringbuffer_obj
because the name is more meaningful and to mirror a similar function in
the context world: i915_gem_alloc_context_obj(). Change suggested by Brad
Volkin.

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c