]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/vkms: Introduce pixel_read_direction enum
authorLouis Chauvet <louis.chauvet@bootlin.com>
Mon, 18 Nov 2024 18:28:22 +0000 (19:28 +0100)
committerLouis Chauvet <louis.chauvet@bootlin.com>
Fri, 22 Nov 2024 13:00:08 +0000 (14:00 +0100)
commitb52fd27356af947f80b0c0855691e42a4c02ee79
treecc60ad1905089ed5290894f70f9ebc469831419d
parentcb6de83faa9049bf40e7dc6821d903016bec2337
drm/vkms: Introduce pixel_read_direction enum

The pixel_read_direction enum is useful to describe the reading direction
in a plane. It avoids using the rotation property of DRM, which not
practical to know the direction of reading.
This patch also introduce two helpers, one to compute the
pixel_read_direction from the DRM rotation property, and one to compute
the step, in byte, between two successive pixel in a specific direction.

Acked-by: Maíra Canal <mairacanal@riseup.net>
Reviewed-by: José Expósito <jose.exposito89@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241118-yuv-v14-7-2dbc2f1e222c@bootlin.com
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
drivers/gpu/drm/vkms/vkms_composer.c
drivers/gpu/drm/vkms/vkms_drv.h
drivers/gpu/drm/vkms/vkms_formats.c