drm/i915: Refactor common ringbuffer allocation code
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 Sep 2015 12:01:39 +0000 (13:01 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Sep 2015 08:17:00 +0000 (10:17 +0200)
commit01101fa7cc85fffc95798d1f67970dad96063fc6
tree0e6b741c4ba5bd4b78dba8c4746d20627d9ff417
parent742f491d2c204204086d2bc85cc5100daa6ff336
drm/i915: Refactor common ringbuffer allocation code

A small, very small, step to sharing the duplicate code between
execlists and legacy submission engines, starting with the ringbuffer
allocation code.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Arun Siluvery <arun.siluvery@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Dave Gordon <david.s.gordon@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h