drm/vkms: add rotate-0 and reflect-x property
authorMaíra Canal <mcanal@igalia.com>
Tue, 18 Apr 2023 13:05:22 +0000 (10:05 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Mon, 8 May 2023 12:46:13 +0000 (09:46 -0300)
commit4a9820343579f65635500d9f9b268ec6d07496e0
treeeaab574f8ed16ab3e60fcb4a557f68d1e9846079
parentb8e392245105b50706f18418054821e71e637288
drm/vkms: add rotate-0 and reflect-x property

Currently, vkms doesn't support any reflection property. Therefore, add
the reflect-x property to vkms through a software implementation of the
operation. This is possible by reverse reading the x axis during the
blending.

Tested with igt@kms_rotation_crc@primary-reflect-x [1] and
igt@kms_rotation_crc@sprite-reflect-x [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-3-mcanal@igalia.com
drivers/gpu/drm/vkms/vkms_composer.c
drivers/gpu/drm/vkms/vkms_drv.h
drivers/gpu/drm/vkms/vkms_formats.c
drivers/gpu/drm/vkms/vkms_plane.c