Skip to content

drm/format-helper: Add Kunit tests for drm_fb_xrgb8888_to_mono()

Arthur Grillo dri-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesIn review
  2. v22 patches 0 repliesSuperseded
  3. v11 patch 5 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/format-helper: Add Kunit tests for drm_fb_xrgb8888_to_mono()drivers/gpu/drm/tests/drm_format_helper_test.c+62 -03 replies
2/2drm/format-helper: Make "destination_pitch" test case usable for the monochrome casedrivers/gpu/drm/tests/drm_format_helper_test.c+39 -391 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJavier Martinez Canillas
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] drm/format-helper: Add Kunit tests for drm_fb_xrgb8888_to_mono()

This patchset aims to insert a unit test for the conversion from XRGB8888 to monochromatic.

Previously this was a single patch, but as the changes grew from v1 to v2, I thought it would be better to split it in two.

Thanks for reviewing!

Best regards,
~Arthur Grillo

---

v1->v2: https://lore.kernel.org/all/[email protected]/
- Remove extra helper an use the existing one that Javier patched [1].
- Make the expected results more intuitive by using the BIT macro.
- Change the "destination_pitch" test case colors.

v2->v3: https://lore.kernel.org/all/[email protected]/
- Use binary constants instead of the BIT macros, to suppress a warning pointed out by the kernel bot and still maintain the intuitive intention.

---

[1]: https://lore.kernel.org/all/[email protected]/

---

Arthur Grillo (2):
drm/format-helper: Add Kunit tests for drm_fb_xrgb8888_to_mono() drm/format-helper: Make "destination_pitch" test case usable for the
monochrome case

 .../gpu/drm/tests/drm_format_helper_test.c    | 134 +++++++++++++-----
 1 file changed, 98 insertions(+), 36 deletions(-)
Signature · 1 line
2.39.2