From aa2cd285e85db50d784092c85be1202008d6007c Mon Sep 17 00:00:00 2001 From: Dave Stevenson Date: Mon, 25 Mar 2024 15:24:12 +0000 Subject: [PATCH 0989/1085] drm/vc4: Enable bg_fill if there are no planes enabled The default was to have enable_bg_fill disabled and the first plane set it if it wasn't opaque and covering the whole screen. However that meant that if no planes were enabled, then the background fill wasn't enabled, and would give a striped output from the uninitialised output buffer. Initialise it to enabled to avoid this. Signed-off-by: Dave Stevenson --- drivers/gpu/drm/vc4/vc4_hvs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/vc4/vc4_hvs.c +++ b/drivers/gpu/drm/vc4/vc4_hvs.c @@ -1406,7 +1406,7 @@ void vc4_hvs_atomic_flush(struct drm_crt struct drm_plane *plane; struct vc4_plane_state *vc4_plane_state; bool debug_dump_regs = false; - bool enable_bg_fill = false; + bool enable_bg_fill = true; u32 __iomem *dlist_start, *dlist_next; unsigned long irqflags; unsigned int zpos = 0;