drm/atomic-helper: Don't skip plane disabling on active CRTC
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 10 Sep 2015 21:07:19 +0000 (00:07 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 13 Sep 2015 21:20:54 +0000 (23:20 +0200)
commit216c59d65f99aa1ef1a92e1ae64f1f1c2590dddc
tree5ff49bb6eb7e68fb7079f213e339e8da2bc11c21
parentc86fb9d997428e0d55ab5a47488b6ba3bc4b5c5b
drm/atomic-helper: Don't skip plane disabling on active CRTC

Since commit "drm/atomic-helper: Add option to update planes only on
active crtc" the drm_atomic_helper_commit_planes() function accepts an
active_only argument to skip updating planes when the associated CRTC is
inactive. Planes being disabled on an active CRTC are incorrectly
considered as associated with an inactive CRTC and are thus skipped,
preventing any plane disabling update from reaching drivers.

Fix it by checking the state of the CRTC stored in the old plane state
for planes being disabled.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c