Skip to content

Commit 4dee3c4

Browse files
committed
drm/vkms: remove the need for the primary plane to be visible
Before commit bc0d7fd ("drm: vkms: Supports to the case where primary plane doesn't match the CRTC"), the composition was executed on top of the primary plane. Therefore, the primary plane needed to be visible and full screen. After commit bc0d7fd, this is no longer necessary, as the composition is now executed on top of the CRTC. Then, remove the conditional expression that forced the primary plane to be visible and full screen. This allows vkms to accept non-null framebuffers when the CRTC is disabled. This patch was tested with the vkms IGT testlist and all tests passed successfully. Moreover, the tests igt@kms_universal_plane@universal-plane-pipe-a-functional and igt@kms_universal_plane@disable-primary-vs-flip-pipe-a used to fail and now are passing. Signed-off-by: Maíra Canal <mcanal@igalia.com> Reviewed-by: Melissa Wen <mwen@igalia.com> Signed-off-by: Maíra Canal <mairacanal@riseup.net> Link: https://patchwork.freedesktop.org/patch/msgid/20230324164226.256084-2-mcanal@igalia.com
1 parent e44f18c commit 4dee3c4

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/gpu/drm/vkms/vkms_plane.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ static int vkms_plane_atomic_check(struct drm_plane *plane,
153153
if (ret != 0)
154154
return ret;
155155

156-
/* for now primary plane must be visible and full screen */
157-
if (!new_plane_state->visible && !can_position)
158-
return -EINVAL;
159-
160156
return 0;
161157
}
162158

0 commit comments

Comments
 (0)