drm/vkms: add rotate-270 property
authorMaíra Canal <mcanal@igalia.com>
Tue, 18 Apr 2023 13:05:25 +0000 (10:05 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Mon, 8 May 2023 12:57:20 +0000 (09:57 -0300)
commitcd0755508d81736d026bc25647a89dfc79162d95
tree0be0246531dc9b2148a2bc719e850f65d53686ae
parentcf7f8c671c830302bd382ac640591ee3d6381ad3
drm/vkms: add rotate-270 property

Currently, vkms supports the rotate-90, rotate-180, reflect-x and
reflect-y properties. Therefore, improve the vkms IGT test coverage by
adding the rotate-270 property to vkms. The rotation was implement by
software: rotate the way the blending occurs by making the source x axis
be the destination y axis and the source y axis be the destination x
axis and reverse-read the axis.

Now, vkms supports all possible rotation values.

Tested with igt@kms_rotation_crc@primary-rotation-270 [1],
and igt@kms_rotation_crc@sprite-rotation-270 [1].

[1] https://patchwork.freedesktop.org/series/116025/

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/20230418130525.128733-6-mcanal@igalia.com
drivers/gpu/drm/vkms/vkms_composer.c
drivers/gpu/drm/vkms/vkms_formats.c
drivers/gpu/drm/vkms/vkms_plane.c