[PATCH v17 0/7] drm/vkms: Add support for YUV and DRM_FORMAT_R*
From: Louis Chauvet
Date: Tue Feb 04 2025 - 12:08:02 EST
This patchset is extracted from [1]. The goal is to introduce the YUV
support, thanks to Arthur's work.
- PATCH 1: Add the support of YUV formats
- PATCH 2: Add some drm properties to expose more YUV features
- PATCH 3: Cleanup the todo
- PATCH 4..6: Add some kunit tests
- PATCH 7: Add the support of DRM_FORMAT_R1/2/4/8
[1]: https://lore.kernel.org/r/20241007-yuv-v12-0-01c1ada6fec8@xxxxxxxxxxx
Signed-off-by: Louis Chauvet <louis.chauvet@xxxxxxxxxxx>
---
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@xxxxxxxxxxx
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@xxxxxxxxxxx
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@xxxxxxxxxxx
Changes in v14:
- Rebased on drm-misc-next
- Link to v13: https://lore.kernel.org/r/20241118-yuv-v13-0-ac0dd4129552@xxxxxxxxxxx
Changes since previous series:
- Fix build test as modules issue: https://lore.kernel.org/all/202410110407.EHvadSaF-lkp@xxxxxxxxx/
- 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@xxxxxxxxxxx
---
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 (2):
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/Kconfig | 15 +
drivers/gpu/drm/vkms/Makefile | 1 +
drivers/gpu/drm/vkms/tests/.kunitconfig | 4 +
drivers/gpu/drm/vkms/tests/Makefile | 3 +
drivers/gpu/drm/vkms/tests/vkms_format_test.c | 271 +++++++++++++++
drivers/gpu/drm/vkms/vkms_drv.h | 18 +
drivers/gpu/drm/vkms/vkms_formats.c | 467 +++++++++++++++++++++++++-
drivers/gpu/drm/vkms/vkms_formats.h | 9 +
drivers/gpu/drm/vkms/vkms_plane.c | 29 +-
11 files changed, 831 insertions(+), 4 deletions(-)
---
base-commit: 8cca475b8085e551b3eebf4f2164e56c800402e0
change-id: 20240201-yuv-1337d90d9576
Best regards,
--
Louis Chauvet <louis.chauvet@xxxxxxxxxxx>