2023-11-17 16:31:36 +00:00
|
|
|
From 334090ec65499cf26714ca5f1de670625e374713 Mon Sep 17 00:00:00 2001
|
2023-10-09 16:43:46 +00:00
|
|
|
From: Maxime Ripard <maxime@cerno.tech>
|
|
|
|
Date: Fri, 14 Apr 2023 12:59:05 +0200
|
2023-11-17 16:31:36 +00:00
|
|
|
Subject: [PATCH] drm/vc4: tests: Support a few more plane formats
|
2023-10-09 16:43:46 +00:00
|
|
|
|
|
|
|
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 | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
--- a/drivers/gpu/drm/vc4/tests/vc4_mock_plane.c
|
|
|
|
+++ b/drivers/gpu/drm/vc4/tests/vc4_mock_plane.c
|
2023-11-17 16:31:36 +00:00
|
|
|
@@ -21,7 +21,10 @@ static const struct drm_plane_funcs vc4_
|
2023-10-09 16:43:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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,
|