bcm27xx: update 6.1 patches to latest version
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-6.1 / 950-0985-drm-vc4-tests-Support-a-few-more-plane-formats.patch
1 From 418d2e0e652c3870c29dd2e462f052a88fa027da Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Fri, 14 Apr 2023 12:59:05 +0200
4 Subject: [PATCH] drm/vc4: tests: Support a few more plane formats
5
6 We'll start testing our planes code in situations where we will use more
7 than XRGB8888, so let's add a few common pixel formats.
8
9 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
10 ---
11 drivers/gpu/drm/vc4/tests/vc4_mock_plane.c | 3 +++
12 1 file changed, 3 insertions(+)
13
14 --- a/drivers/gpu/drm/vc4/tests/vc4_mock_plane.c
15 +++ b/drivers/gpu/drm/vc4/tests/vc4_mock_plane.c
16 @@ -21,7 +21,10 @@ static const struct drm_plane_funcs vc4_
17 };
18
19 static const uint32_t vc4_dummy_plane_formats[] = {
20 + DRM_FORMAT_ARGB8888,
21 DRM_FORMAT_XRGB8888,
22 + DRM_FORMAT_YUV420,
23 + DRM_FORMAT_YUV422,
24 };
25
26 struct vc4_dummy_plane *vc4_dummy_plane(struct kunit *test,