All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] drm/vkms: introduce plane rotation property
@ 2023-04-14 13:51 Maíra Canal
  2023-04-14 13:51 ` [PATCH v2 1/7] drm/vkms: isolate pixel conversion functionality Maíra Canal
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Maíra Canal @ 2023-04-14 13:51 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter, Rodrigo Siqueira, Melissa Wen,
	Haneen Mohammed, Igor Matheus Andrade Torrente, Arthur Grillo
  Cc: Maíra Canal, dri-devel

This patchset implements all possible rotation value in vkms. All operations
were implemented by software by changing the way the pixels are read. The way
the blending is performed can be depicted as:

- rotate-0:
                (x) ---->
    ----------------------
(y) |                    |
  | |                    |
  | |                    |
  ˇ |                    |
    ----------------------

- rotate-90:
    <---- (y)
    ----------------------
(x) |                    |
  | |                    |
  | |                    |
  ˇ |                    |
    ----------------------

- rotate-180:
    <---- (x)
    ----------------------
(y) |                    |
  ^ |                    |
  | |                    |
  | |                    |
    ----------------------

- rotate-270:
                (y) ---->
    ----------------------
(x) |                    |
  ^ |                    |
  | |                    |
  | |                    |
    ----------------------

- reflect-x:
    <---- (x)
    ----------------------
(y) |                    |
  | |                    |
  | |                    |
  ˇ |                    |
    ----------------------

- reflect-y:
                (x) ---->
    ----------------------
(y) |                    |
  ^ |                    |
  | |                    |
  | |                    |
    ----------------------

The patchset was tested with IGT's kms_rotation_crc tests and also with some
additional tests [1] for the reflection operations.

In order to avoid code duplication, I introduced a patch that isolates the
pixel format convertion and wraps it in a single loop.

v1 -> v2:

* Add patch to isolate pixel format convertion (Arthur Grillo).

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

Best Regards,
- Maíra Canal

Maíra Canal (7):
  drm/vkms: isolate pixel conversion functionality
  drm/vkms: add rotate-0 and rotate-180 properties
  drm/vkms: add rotate-90 property
  drm/vkms: add rotate-270 property
  drm/vkms: add reflect-x property
  drm/vkms: add reflect-y property
  drm/vkms: drop "Rotation" TODO

 Documentation/gpu/vkms.rst           |   2 +-
 drivers/gpu/drm/vkms/vkms_composer.c |  79 +++++++++++---
 drivers/gpu/drm/vkms/vkms_drv.h      |   5 +-
 drivers/gpu/drm/vkms/vkms_formats.c  | 153 ++++++++++++++-------------
 drivers/gpu/drm/vkms/vkms_formats.h  |   2 +-
 drivers/gpu/drm/vkms/vkms_plane.c    |  12 ++-
 6 files changed, 163 insertions(+), 90 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-04-17 12:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-14 13:51 [PATCH v2 0/7] drm/vkms: introduce plane rotation property Maíra Canal
2023-04-14 13:51 ` [PATCH v2 1/7] drm/vkms: isolate pixel conversion functionality Maíra Canal
2023-04-14 19:02   ` Arthur Grillo Queiroz Cabral
2023-04-14 13:51 ` [PATCH v2 2/7] drm/vkms: add rotate-0 and rotate-180 properties Maíra Canal
2023-04-14 13:51 ` [PATCH v2 3/7] drm/vkms: add rotate-90 property Maíra Canal
2023-04-14 13:51 ` [PATCH v2 4/7] drm/vkms: add rotate-270 property Maíra Canal
2023-04-14 13:51 ` [PATCH v2 5/7] drm/vkms: add reflect-x property Maíra Canal
2023-04-14 13:51 ` [PATCH v2 6/7] drm/vkms: add reflect-y property Maíra Canal
2023-04-14 14:24   ` Ville Syrjälä
2023-04-14 14:37     ` Maíra Canal
2023-04-14 14:46       ` Ville Syrjälä
2023-04-14 17:53         ` Maíra Canal
2023-04-17 12:47           ` Ville Syrjälä
2023-04-14 13:51 ` [PATCH v2 7/7] drm/vkms: drop "Rotation" TODO Maíra Canal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.