drm/vc4: tests: Support a few more plane formats
authorMaxime Ripard <maxime@cerno.tech>
Fri, 14 Apr 2023 10:59:05 +0000 (12:59 +0200)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:00 +0000 (11:35 +0000)
We'll start testing our planes code in situations where we will use more
than XRGB8888, so let's add a few common pixel formats.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/tests/vc4_mock_plane.c

index e1bdcb8..d508369 100644 (file)
@@ -21,7 +21,10 @@ static const struct drm_plane_funcs vc4_dummy_plane_funcs = {
 };
 
 static const uint32_t vc4_dummy_plane_formats[] = {
+       DRM_FORMAT_ARGB8888,
        DRM_FORMAT_XRGB8888,
+       DRM_FORMAT_YUV420,
+       DRM_FORMAT_YUV422,
 };
 
 struct vc4_dummy_plane *vc4_dummy_plane(struct kunit *test,