All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arthur Grillo <arthurgrillo@riseup.net>
To: dri-devel@lists.freedesktop.org
Cc: davidgow@google.com, tales.aparecida@gmail.com,
	javierm@redhat.com, mairacanal@riseup.net, tzimmermann@suse.de,
	jose.exposito89@gmail.com, andrealmeid@riseup.net,
	Arthur Grillo <arthurgrillo@riseup.net>
Subject: [PATCH v3 0/2] drm/format-helper: Add Kunit tests for drm_fb_xrgb8888_to_mono()
Date: Sat, 11 Mar 2023 09:51:39 -0300	[thread overview]
Message-ID: <20230311125141.564801-1-arthurgrillo@riseup.net> (raw)

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/20230302200131.754154-1-arthurgrillo@riseup.net/
- 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/20230310200901.216971-1-arthurgrillo@riseup.net/
- 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/20230307215039.346863-1-javierm@redhat.com/

---

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(-)

-- 
2.39.2


             reply	other threads:[~2023-03-11 12:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-11 12:51 Arthur Grillo [this message]
2023-03-11 12:51 ` [PATCH v3 1/2] drm/format-helper: Add Kunit tests for drm_fb_xrgb8888_to_mono() Arthur Grillo
2023-03-14 19:08   ` Javier Martinez Canillas
2023-03-14 22:17     ` Arthur Grillo Queiroz Cabral
2023-03-16 20:04       ` Javier Martinez Canillas
2023-03-11 12:51 ` [PATCH v3 2/2] drm/format-helper: Make "destination_pitch" test case usable for the monochrome case Arthur Grillo
2023-03-14 19:11   ` Javier Martinez Canillas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230311125141.564801-1-arthurgrillo@riseup.net \
    --to=arthurgrillo@riseup.net \
    --cc=andrealmeid@riseup.net \
    --cc=davidgow@google.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=javierm@redhat.com \
    --cc=jose.exposito89@gmail.com \
    --cc=mairacanal@riseup.net \
    --cc=tales.aparecida@gmail.com \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.