10d7f571194fc98d7340904e63af4bab2331bfcf
[openwrt/staging/stintel.git] /
1 From aa2cd285e85db50d784092c85be1202008d6007c Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 25 Mar 2024 15:24:12 +0000
4 Subject: [PATCH 0989/1085] drm/vc4: Enable bg_fill if there are no planes
5 enabled
6
7 The default was to have enable_bg_fill disabled and the first
8 plane set it if it wasn't opaque and covering the whole screen.
9 However that meant that if no planes were enabled, then the
10 background fill wasn't enabled, and would give a striped
11 output from the uninitialised output buffer.
12
13 Initialise it to enabled to avoid this.
14
15 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
16 ---
17 drivers/gpu/drm/vc4/vc4_hvs.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 --- a/drivers/gpu/drm/vc4/vc4_hvs.c
21 +++ b/drivers/gpu/drm/vc4/vc4_hvs.c
22 @@ -1400,7 +1400,7 @@ void vc4_hvs_atomic_flush(struct drm_crt
23 struct drm_plane *plane;
24 struct vc4_plane_state *vc4_plane_state;
25 bool debug_dump_regs = false;
26 - bool enable_bg_fill = false;
27 + bool enable_bg_fill = true;
28 u32 __iomem *dlist_start, *dlist_next;
29 unsigned int zpos = 0;
30 bool found = false;