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)
commitd1f3e1e0b38d49cbb996dcf0fde5b5205d12a23d
treead6a7bb3489938730f1d7b95e472889880ba7bb4
parent3f4f3b5fede02d338383619ff57744a8415ccceb
drm/tegra: Properly align stride for framebuffers

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
This page took 0.024972 seconds and 5 git commands to generate.