Skip to content

Commit 014fbe2

Browse files
committed
drm: apple: iomfb: Clear non-visible planes
Fixes failed DCP swap validity checks and subsequent DCP crashes. Fixes: 5536a93 ("drm: apple: refactor apple_plane_atomic_check") Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 1994465 commit 014fbe2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/apple/iomfb_template.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ void DCP_FW_NAME(iomfb_flush)(struct apple_dcp *dcp, struct drm_crtc *crtc, stru
13431343
drm_framebuffer_get(old_state->fb);
13441344
}
13451345

1346-
if (!new_state->fb) {
1346+
if (!new_state->fb || !new_state->visible) {
13471347
continue;
13481348
}
13491349
req->surf_null[l] = false;

0 commit comments

Comments
 (0)