drm/i915: Use intel_tile_height() instead of re-implementing
authorDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Sat, 21 Dec 2019 12:05:34 +0000 (14:05 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 23 Dec 2019 11:50:54 +0000 (13:50 +0200)
intel_tile_dims() computes tile height using size and width, when there
is already a function to do just that - intel_tile_height()

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191221120543.22816-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display.c

index 06e799d..99c8761 100644 (file)
@@ -1998,7 +1998,7 @@ static void intel_tile_dims(const struct drm_framebuffer *fb, int color_plane,
        unsigned int cpp = fb->format->cpp[color_plane];
 
        *tile_width = tile_width_bytes / cpp;
-       *tile_height = intel_tile_size(to_i915(fb->dev)) / tile_width_bytes;
+       *tile_height = intel_tile_height(fb, color_plane);
 }
 
 unsigned int