drm/i915: Factor out intel_tile_width()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 12 Jan 2016 19:08:32 +0000 (21:08 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 13 Jan 2016 16:46:24 +0000 (18:46 +0200)
commit7b49f94839660a82f1f40ee95cfe70245b4444d7
tree2c7fb19bde8e13376d4d45f083da60849b3740e8
parentb5c653384f84b0ccb97e9cf942b6e8ed759221bf
drm/i915: Factor out intel_tile_width()

Pull the tile width calculations from intel_fb_stride_alignment() into a
new function intel_tile_width().

Also take the opportunity to pass aroun dev_priv instead of dev to
intel_fb_stride_alignment().

v2: Reorder argumnents to be more consistent with other functions
    Change intel_fb_stride_alignment() to accept dev_priv instead of dev
v3: Deal with Y tilling (Daniel)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1452625717-9713-3-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c