]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5e466f52e6e80e16ae1d2ef826cba2809453c484
tree5ff49bb6eb7e68fb7079f213e339e8da2bc11c21
parentbfda51983b182c856676e973d43370e6e4cc628d
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