]> git.baikalelectronics.ru Git - 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)
commitbebd1c4cf5b640c1b159b5caeb0724cd402a2429
tree0e4c841d3ec37e2796bfcfa80b4aa232e77b5828
parentf8001533b4b5829451adc1b8efc8d3d273635bd8
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