Skip to content

Commit 93e7a0a

Browse files
jannaumarcan
authored andcommitted
drm/apple: ignore surf[3] in clear swap calls
MacOS 13.2 does the same and it is unclear if surf[3] can be used at all. PRobably not necessary but found during debugging to firmware 13.2. Signed-off-by: Janne Grunau <[email protected]>
1 parent b8c3d52 commit 93e7a0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/apple/iomfb_template.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ void DCP_FW_NAME(iomfb_poweroff)(struct apple_dcp *dcp)
841841
memset(swap, 0, sizeof(*swap));
842842

843843
swap->swap.swap_enabled =
844-
swap->swap.swap_completed = IOMFB_SET_BACKGROUND | 0xF;
844+
swap->swap.swap_completed = IOMFB_SET_BACKGROUND | 0x7;
845845
swap->swap.bg_color = 0xFF000000;
846846

847847
/*
@@ -1113,7 +1113,7 @@ void DCP_FW_NAME(iomfb_flush)(struct apple_dcp *dcp, struct drm_crtc *crtc, stru
11131113
* sticks around.
11141114
*/
11151115
if (!dcp->surfaces_cleared) {
1116-
req->swap.swap_enabled = IOMFB_SET_BACKGROUND | 0xF;
1116+
req->swap.swap_enabled = IOMFB_SET_BACKGROUND | 0x7;
11171117
req->swap.bg_color = 0xFF000000;
11181118
dcp->surfaces_cleared = true;
11191119
}

0 commit comments

Comments
 (0)