]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm: tegra: Use framebuffer pitch as line stride
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 22 Nov 2012 19:37:17 +0000 (19:37 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Nov 2012 10:05:46 +0000 (20:05 +1000)
commitac8f7c4894bea3ae1af31e78fea31b1ba3347834
tree08dcff8981edb53ad264bec847996d83a97adb27
parent82fe50bcc87e508e85250c87b745296a36a07897
drm: tegra: Use framebuffer pitch as line stride

Instead of using the stride derived from the display mode, use the pitch
associated with the currently active framebuffer. This fixes a bug where
the LCD display content would be skewed when enabling HDMI with a video
mode different from that of the LCD.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Mark Zhang <markz@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tegra/dc.c