public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND v2 0/8] drm/vkms: Add support for multiple plane formats
@ 2024-10-07 16:46 Louis Chauvet
  2024-10-07 16:46 ` [PATCH RESEND v2 1/8] drm/vkms: Create helpers macro to avoid code duplication in format callbacks Louis Chauvet
                   ` (7 more replies)
  0 siblings, 8 replies; 24+ messages in thread
From: Louis Chauvet @ 2024-10-07 16:46 UTC (permalink / raw)
  To: Rodrigo Siqueira, Melissa Wen, Maíra Canal, Haneen Mohammed,
	Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Simona Vetter
  Cc: dri-devel, arthurgrillo, linux-kernel, jeremie.dautheribes,
	miquel.raynal, thomas.petazzoni, seanpaul, marcheu, nicolejadeyee,
	Louis Chauvet, 20241007-yuv-v12-0-01c1ada6fec8

This series introduce a macro to generate a function to read simple
formats. It avoid duplication of the same logic for similar formats.

PATCH 1 is the introduction of the macro and adaptation of the existing
code to avoid duplication
PATCH 2-6 introduce new formats with the help of this macro.

This series must be applied on top of [1].

[1]: https://lore.kernel.org/all/20240809-yuv-v10-0-1a7c764166f7@bootlin.com/ 

Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
---
Changes in v2:
- Add proper casting/type to __le16 when needed to avoid warnings with 
  sparse
- Change the function argb_u16_from_yuv8888 to argb_u16_from_yuv161616 to 
  support 16 bits values.
- Add support for P010/P012/P016 format
- Link to v1: https://lore.kernel.org/r/20240516-b4-new-color-formats-v1-0-74cf9fe07317@bootlin.com

---
Louis Chauvet (8):
      drm/vkms: Create helpers macro to avoid code duplication in format  callbacks
      drm/vkms: Add support for ARGB8888 formats
      drm/vkms: Add support for ARGB16161616 formats
      drm/vkms: Add support for RGB565 formats
      drm/vkms: Add support for RGB888 formats
      drm/vkms: Change YUV helpers to support u16 inputs for conversion
      drm/vkms: Create helper macro for YUV formats
      drm/vkms: Add P01* formats

 drivers/gpu/drm/vkms/tests/vkms_format_test.c |   3 +-
 drivers/gpu/drm/vkms/vkms_formats.c           | 320 ++++++++++++++------------
 drivers/gpu/drm/vkms/vkms_formats.h           |   4 +-
 drivers/gpu/drm/vkms/vkms_plane.c             |  14 ++
 4 files changed, 195 insertions(+), 146 deletions(-)
---
base-commit: 82fe69e63d2b5a5e86ea94c7361c833d3848ab69
change-id: 20240312-b4-new-color-formats-1be9d688b21a
prerequisite-message-id: <20241007-yuv-v12-0-01c1ada6fec8@bootlin.com>
prerequisite-patch-id: ae2d8b2efbbaa9decce56632c498c87e708288b3
prerequisite-patch-id: d1e73379a15c5062924cf2dc8619676e13f35a13
prerequisite-patch-id: 2eed29b53617ba76169e1af303e4899d517a3a18
prerequisite-patch-id: 3f84c6e64b3a25510e929914e97ae2549451707c
prerequisite-patch-id: 82523a917646793deeec7cdcc7ff286bd924fd21
prerequisite-patch-id: dda6bf4692cd1795c489ff58e72c0841ea8ffbc4
prerequisite-patch-id: a0639eb773bf58c2ffe76f2567a8c74b6275092c
prerequisite-patch-id: 7a63d245a377d5f5283f48e8f52421b912811752
prerequisite-patch-id: deda292af6d8bbf6762b0bf4d351ffd2225995d8
prerequisite-patch-id: 6c2aa2645c7d854951608aa4d15a02e076abe1fe
prerequisite-patch-id: 11ae7be077ce7022f61101d41a9ba79b98efb273
prerequisite-patch-id: 18554f49b53cbcfd4a8ca50dc83b17dd3cf96474
prerequisite-patch-id: dc61c6d3db73053fc36e115af561e0c42b467de2
prerequisite-patch-id: 43f37e9c1bc041d491e41dfb59548ed258a1e071
prerequisite-patch-id: 5633292e10132d29be2467812e6e2e824cfedb67

Best regards,
-- 
Louis Chauvet <louis.chauvet@bootlin.com>


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

end of thread, other threads:[~2024-10-28 10:39 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-07 16:46 [PATCH RESEND v2 0/8] drm/vkms: Add support for multiple plane formats Louis Chauvet
2024-10-07 16:46 ` [PATCH RESEND v2 1/8] drm/vkms: Create helpers macro to avoid code duplication in format callbacks Louis Chauvet
2024-10-26 14:29   ` Maíra Canal
2024-10-28  9:50     ` Louis Chauvet
2024-10-26 14:58   ` Maíra Canal
2024-10-28  9:50     ` Louis Chauvet
2024-10-07 16:46 ` [PATCH RESEND v2 2/8] drm/vkms: Add support for ARGB8888 formats Louis Chauvet
2024-10-26 14:11   ` Maíra Canal
2024-10-28  9:50     ` Louis Chauvet
2024-10-28 10:20       ` Maíra Canal
2024-10-28 10:39         ` Louis Chauvet
2024-10-07 16:46 ` [PATCH RESEND v2 3/8] drm/vkms: Add support for ARGB16161616 formats Louis Chauvet
2024-10-26 14:15   ` Maíra Canal
2024-10-28  9:50     ` Louis Chauvet
2024-10-07 16:46 ` [PATCH RESEND v2 4/8] drm/vkms: Add support for RGB565 formats Louis Chauvet
2024-10-26 14:17   ` Maíra Canal
2024-10-28  9:50     ` Louis Chauvet
2024-10-07 16:46 ` [PATCH RESEND v2 5/8] drm/vkms: Add support for RGB888 formats Louis Chauvet
2024-10-26 14:51   ` Maíra Canal
2024-10-28  9:50     ` Louis Chauvet
2024-10-28 10:39       ` Maíra Canal
2024-10-07 16:46 ` [PATCH RESEND v2 6/8] drm/vkms: Change YUV helpers to support u16 inputs for conversion Louis Chauvet
2024-10-07 16:46 ` [PATCH RESEND v2 7/8] drm/vkms: Create helper macro for YUV formats Louis Chauvet
2024-10-07 16:46 ` [PATCH RESEND v2 8/8] drm/vkms: Add P01* formats Louis Chauvet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox