]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/tegra: dc: Disable plane if it is invisible
authorDmitry Osipenko <digetx@gmail.com>
Wed, 14 Jun 2017 23:18:31 +0000 (02:18 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 15 Jun 2017 12:20:30 +0000 (14:20 +0200)
commit80d3eef16e16912df967a083da237d56dc4493b8
tree0e4c841d3ec37e2796bfcfa80b4aa232e77b5828
parent7d2058571aafad239e7f1a3c04a830c6ec6a426f
drm/tegra: dc: Disable plane if it is invisible

On Tegra20 if plane has width or height equal to 0, it will be infinitely
wide or tall. Let's disable the plane if it is invisible on atomic state
committing to fix the issue. The Rockchip DRM driver does the same.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c