OSDN Git Service

drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_xrgb2101010()
authorJosé Expósito <jose.exposito89@gmail.com>
Mon, 26 Sep 2022 08:08:36 +0000 (10:08 +0200)
committerJosé Expósito <jose.exposito89@gmail.com>
Tue, 27 Sep 2022 17:41:51 +0000 (19:41 +0200)
commit453114319699b6bec2f2ab9bd87617ba25f6215e
tree64db19ea25cc32af34705a73d066fb4f4b397578
parentf3f716ae5d827fbbdf994c9d5b05d05fe33c8ced
drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_xrgb2101010()

Extend the existing test cases to test the conversion from XRGB8888 to
XRGB2101010.

In order to be able to call drm_fb_xrgb8888_to_xrgb2101010() when
compiling CONFIG_DRM_KMS_HELPER as a module export the symbol.

Tested-by: Maíra Canal <mairacanal@riseup.net>
Reviewed-by: David Gow <davidgow@google.com>
Acked-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220926080837.65734-3-jose.exposito89@gmail.com
drivers/gpu/drm/drm_format_helper.c
drivers/gpu/drm/tests/drm_format_helper_test.c