aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_fbdev.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2015-01-20 07:51:45 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-01-27 03:51:01 -0500
commitec2c981e6232ac2039e679d24642b80fbbd2acc6 (patch)
treecd590182407207070ba74e88ffe78125cb117510 /drivers/gpu/drm/i915/intel_fbdev.c
parent49af449b457b721ac5c18f537cf7484903f212f8 (diff)
drm/i915: Use a common function for computing the fb height alignment
If we need to change the fb height constraints, it sounds like a good idea to have to do it in one place only. v2: v2: Rebase on top of Ander's "Make intel_crtc->config a pointer" Reviewed-By: Tvrtko Ursulin <tvrtko.ursulin@intel.com> (v1) Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_fbdev.c')
-rw-r--r--drivers/gpu/drm/i915/intel_fbdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915/intel_fbdev.c
index 6b18821a0eb2..ece702235b38 100644
--- a/drivers/gpu/drm/i915/intel_fbdev.c
+++ b/drivers/gpu/drm/i915/intel_fbdev.c
@@ -593,7 +593,8 @@ static bool intel_fbdev_init_bios(struct drm_device *dev,
593 } 593 }
594 594
595 cur_size = intel_crtc->config->base.adjusted_mode.crtc_vdisplay; 595 cur_size = intel_crtc->config->base.adjusted_mode.crtc_vdisplay;
596 cur_size = ALIGN(cur_size, plane_config->tiling ? (IS_GEN2(dev) ? 16 : 8) : 1); 596 cur_size = intel_fb_align_height(dev, cur_size,
597 plane_config->tiling);
597 cur_size *= fb->base.pitches[0]; 598 cur_size *= fb->base.pitches[0];
598 DRM_DEBUG_KMS("pipe %c area: %dx%d, bpp: %d, size: %d\n", 599 DRM_DEBUG_KMS("pipe %c area: %dx%d, bpp: %d, size: %d\n",
599 pipe_name(intel_crtc->pipe), 600 pipe_name(intel_crtc->pipe),