drm/atomic-helper: Disable appropriate planes in disable_planes_on_crtc()
authorLiu Ying <gnuiyl@gmail.com>
Fri, 26 Aug 2016 07:30:39 +0000 (15:30 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 29 Aug 2016 08:22:05 +0000 (10:22 +0200)
commit28500291c29ae2174eb0322e839cc3204d06b963
treebb6262366dbbbc571f63c64f952568714427e166
parentc9ac8b4c5caf493fba8c43f1bd02f687ffccb429
drm/atomic-helper: Disable appropriate planes in disable_planes_on_crtc()

Currently, the helper drm_atomic_helper_disable_planes_on_crtc() calls
->atomic_disable for all planes _to be_ enabled on a particular CRTC.
This is obviously wrong for those planes which are not scanning out frames
when the helper is called.  Instead, it's sane to disable active planes
of old_crtc_state in the helper.

Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Peter Senna Tschudin <peter.senna@gmail.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Liu Ying <gnuiyl@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1472196644-30563-3-git-send-email-gnuiyl@gmail.com
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_atomic_helper.h