From: Dhinakaran Pandiyan <[email protected]>

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ä <[email protected]>
Cc: Matt Roper <[email protected]>
Cc: Mika Kahola <[email protected]>
Signed-off-by: Dhinakaran Pandiyan <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Reviewed-by: Mika Kahola <[email protected]>
Reviewed-by: Matt Roper <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c 
b/drivers/gpu/drm/i915/display/intel_display.c
index 0ce0cea8f918..b60a15263a50 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -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
-- 
2.22.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to