drm/i915: Move buffer pinning and ring selection to intel_crtc_page_flip()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 15 Apr 2014 18:41:38 +0000 (21:41 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 May 2014 07:55:53 +0000 (09:55 +0200)
All of the .queue_flip() callbacks duplicate the same code to pin the
buffers and calculate the gtt_offset. Move that code to
intel_crtc_page_flip(). In order to do that we must also move the ring
selection logic there.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c

Simple merge
Simple merge