CHROMIUM: drm/exynos: fbdev: Don't recompute fb size in fbdev_update
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 3 Jan 2013 03:14:21 +0000 (11:14 +0800)
committerChromeBot <chrome-bot@google.com>
Sat, 12 Jan 2013 01:26:16 +0000 (17:26 -0800)
commitcf91cdcb9a44524d2bf3fd72991c6ad6ae4b7ca3
tree6cf0cb63bc03963d433d21bf3ccc8c90a6b55dd6
parent66c442c9bd3bd2585c26b558c205c161c4d4c7bb
CHROMIUM: drm/exynos: fbdev: Don't recompute fb size in fbdev_update

The size variable in fbdev_update is used to set the amount of mapped RAM
needed for the framebuffer.  Thus, it is not just the number of pixels
times the bpp; it could be significantly more due to line length cache
alignment and other padding.

Thus, get the size from the gem object itself instead of computing it.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=none
TEST=splash screen displays correctly w/ no HDMI
TEST=splash screen displays correctly w/ HDMI

Change-Id: I7df74770d49931f98ebd62d71178755a83d6db57
Reviewed-on: https://gerrit.chromium.org/gerrit/40445
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Commit-Queue: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
drivers/gpu/drm/exynos/exynos_drm_fbdev.c