drm/tegra: Fix planar formats on Tegra186 and later
authorThierry Reding <treding@nvidia.com>
Wed, 12 Jan 2022 08:40:34 +0000 (09:40 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 25 Feb 2022 15:34:18 +0000 (16:34 +0100)
commitf3e0a175dcfecfb97d7025609ef76708be8753d0
tree732c7af0eb157c9957ce4371ba97c5f1bd3a6842
parent0bb9320fc457c9e8cb4d4b55d8a3057cb9af87d4
drm/tegra: Fix planar formats on Tegra186 and later

Use the correct pitch when programming the DC_WIN_PLANAR_STORAGE_UV
register's PITCH_U field to ensure the correct value is used in all
cases. This isn't currently causing any problems because the pitch
for both U and V planes is always the same.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/hub.c