drm/tegra: Properly align stride for framebuffers
authorThierry Reding <treding@nvidia.com>
Fri, 11 Jul 2014 06:29:14 +0000 (08:29 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 4 Aug 2014 08:07:38 +0000 (10:07 +0200)
Tegra20 and Tegra30 both required the buffer line stride to be aligned
on 8 byte boundaries. Tegra114 and Tegra124 increased the alignment to
64 bytes. Introduce a parameter to specify the alignment requirements
for each display controller and round up the pitch of newly allocated
framebuffers appropriately.

Originally-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/drm.h
drivers/gpu/drm/tegra/fb.c
drivers/gpu/drm/tegra/gem.c

Simple merge
Simple merge
Simple merge
Simple merge