drm/vkms: allow the primary plane to be positioned
authorMaíra Canal <mcanal@igalia.com>
Fri, 24 Mar 2023 16:42:26 +0000 (13:42 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Thu, 6 Apr 2023 12:05:47 +0000 (09:05 -0300)
commit4a1b5d183273ef402edb7c7ff58052ae97259a2d
treeea4fd4086dcee73955d3ef10207b6039d824755f
parent4dee3c4b32a65d6b140ed506a7a8859d5cab6611
drm/vkms: allow the primary plane to be positioned

Before commit bc0d7fdefec6 ("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 cover
the entire CRTC. After commit bc0d7fdefec6, this is no longer necessary,
as the composition is now executed on top of the CRTC.

Then, allow the primary plane to be positioned in such a way that it
doesn't cover the entire CRTC.

This patch was tested with the vkms IGT testlist and all tests passed
successfully. Moreover, the test
igt@kms_universal_plane@universal-plane-pageflip-windowed-pipe-A
used to fail and now is 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-3-mcanal@igalia.com
drivers/gpu/drm/vkms/vkms_plane.c