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)
commit4fa62c890cea83f28c30e1d5dc8fc86f61210280
tree762dfa0079c5532a2d80b9da4005eb1330104c35
parent6304cd91e7f05f8802ea6f91287cac09741d9c46
drm/i915: Move buffer pinning and ring selection to intel_crtc_page_flip()

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