]> 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)
commitd017b4b3c410f9bd73d29efc171f3ab6dd27bc28
tree5ff49bb6eb7e68fb7079f213e339e8da2bc11c21
parent134f22914550ea81e46e8f59a26f6ee9916ef0b7
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