[PATCH v18 0/8] drm/vkms: Add support for YUV and DRM_FORMAT_R*

Louis Chauvet posted 8 patches 8 months ago
Documentation/gpu/vkms.rst                    |  15 +-
drivers/gpu/drm/drm_color_mgmt.c              |   3 +
drivers/gpu/drm/vkms/tests/Makefile           |   1 +
drivers/gpu/drm/vkms/tests/vkms_format_test.c | 280 +++++++++++++++
drivers/gpu/drm/vkms/vkms_drv.h               |  35 ++
drivers/gpu/drm/vkms/vkms_formats.c           | 467 +++++++++++++++++++++++++-
drivers/gpu/drm/vkms/vkms_formats.h           |   9 +
drivers/gpu/drm/vkms/vkms_plane.c             |  29 +-
8 files changed, 835 insertions(+), 4 deletions(-)
[PATCH v18 0/8] drm/vkms: Add support for YUV and DRM_FORMAT_R*
Posted by Louis Chauvet 8 months ago
This patchset is extracted from [1]. The goal is to introduce the YUV
support, thanks to Arthur's work.

- PATCH 2: Document pixel_arbg_u16
- PATCH 3: Add the support of YUV formats
- PATCH 4: Add some drm properties to expose more YUV features
- PATCH 5: Cleanup the todo
- PATCH 6..7: Add some kunit tests
- PATCH 8: Add the support of DRM_FORMAT_R1/2/4/8

[1]: https://lore.kernel.org/r/20241007-yuv-v12-0-01c1ada6fec8@bootlin.com

Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
---
Changes in v18:
- Add PATCH 1
- Add documentation around pixel_yuv_u8
- Link to v17: https://lore.kernel.org/r/20250204-yuv-v17-0-9c623880d0ac@bootlin.com

Changes in v17:
- Rebased on drm-msic-next
- Updated comment in kunit test
- Updated test count in kunit test
- Link to v16: https://lore.kernel.org/r/20250121-yuv-v16-0-a61f95a99432@bootlin.com

Changes in v16:
- Rebased on drm-misc-next
- Updated comment and changed fail thresholds. 
- Link to v15: https://lore.kernel.org/r/20241231-yuv-v15-0-eda6bb3028e6@bootlin.com

Changes in v15:
- Export drm_get_color_encoding_name only for kunit tests
- Link to v14: https://lore.kernel.org/r/20241122-yuv-v14-0-e66d83d28d0c@bootlin.com

Changes in v14:
- Rebased on drm-misc-next
- Link to v13: https://lore.kernel.org/r/20241118-yuv-v13-0-ac0dd4129552@bootlin.com

Changes since previous series:
 - Fix build test as modules issue: https://lore.kernel.org/all/202410110407.EHvadSaF-lkp@intel.com/
 - Export required symbols in DRM core to use them in kunit
 - Update the kunit comments according to Maxime's feedback
 - Link to original series: https://lore.kernel.org/r/20241007-yuv-v12-0-01c1ada6fec8@bootlin.com

---
Arthur Grillo (5):
      drm/vkms: Add YUV support
      drm/vkms: Add range and encoding properties to the plane
      drm/vkms: Drop YUV formats TODO
      drm/vkms: Create KUnit tests for YUV conversions
      drm/vkms: Add how to run the Kunit tests

Louis Chauvet (3):
      drm/vkms: Document pixel_argb_u16
      drm: Export symbols to use in tests
      drm/vkms: Add support for DRM_FORMAT_R*

 Documentation/gpu/vkms.rst                    |  15 +-
 drivers/gpu/drm/drm_color_mgmt.c              |   3 +
 drivers/gpu/drm/vkms/tests/Makefile           |   1 +
 drivers/gpu/drm/vkms/tests/vkms_format_test.c | 280 +++++++++++++++
 drivers/gpu/drm/vkms/vkms_drv.h               |  35 ++
 drivers/gpu/drm/vkms/vkms_formats.c           | 467 +++++++++++++++++++++++++-
 drivers/gpu/drm/vkms/vkms_formats.h           |   9 +
 drivers/gpu/drm/vkms/vkms_plane.c             |  29 +-
 8 files changed, 835 insertions(+), 4 deletions(-)
---
base-commit: 81f6e0e0f3505809dd78eab129106f1c0cf2baf1
change-id: 20240201-yuv-1337d90d9576

Best regards,
-- 
Louis Chauvet <louis.chauvet@bootlin.com>
Re: [PATCH v18 0/8] drm/vkms: Add support for YUV and DRM_FORMAT_R*
Posted by Louis Chauvet 6 months, 2 weeks ago
On Tue, 15 Apr 2025 15:55:31 +0200, Louis Chauvet wrote:
> This patchset is extracted from [1]. The goal is to introduce the YUV
> support, thanks to Arthur's work.
> 
> - PATCH 2: Document pixel_arbg_u16
> - PATCH 3: Add the support of YUV formats
> - PATCH 4: Add some drm properties to expose more YUV features
> - PATCH 5: Cleanup the todo
> - PATCH 6..7: Add some kunit tests
> - PATCH 8: Add the support of DRM_FORMAT_R1/2/4/8
> 
> [...]

Applied, thanks!

[1/8] drm/vkms: Document pixel_argb_u16
      commit: c76e2c78bc2a35ca04eead275f14b6d23ae9a89f
[2/8] drm/vkms: Add YUV support
      commit: fe22d21e93426294eb0ebdb0bf5f6d6b77481ecc
[3/8] drm/vkms: Add range and encoding properties to the plane
      commit: 81dbec07197678fc2d86f1494dfaf44023864842
[4/8] drm/vkms: Drop YUV formats TODO
      commit: f776e5cef757927b038a9c07c0c68f34d35f7787
[5/8] drm: Export symbols to use in tests
      commit: 11d435b81e5dd2cc48daa2d3d71a19bcbc46e807
[6/8] drm/vkms: Create KUnit tests for YUV conversions
      commit: 3e897853debde269ab01f0d3d28c3e7b37bf2c39
[7/8] drm/vkms: Add how to run the Kunit tests
      commit: c59176cbca1188b906a36f06004a98a6264a8008
[8/8] drm/vkms: Add support for DRM_FORMAT_R*
      commit: ef818481d9fbaf3483dde0d1faa565a016810de3

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