Re: [PATCH v4 3/4] drm/vkms: Support setting custom background color
From: Nícolas F. R. A. Prado <hidden>
Date: 2026-01-26 18:26:17
Also in:
dri-devel, linux-rockchip, lkml
From: Nícolas F. R. A. Prado <hidden>
Date: 2026-01-26 18:26:17
Also in:
dri-devel, linux-rockchip, lkml
On Fri, 2025-12-19 at 23:47 +0200, Cristian Ciocaltea wrote:
Make use of the BACKGROUND_COLOR CRTC property when filling the
background during blending. It already defaults to solid black.
Since the internal representation of the pixel color in VKMS relies
on
16 bits of precision, use the newly introduced
DRM_ARGB64_GET{R|G|B}()
helpers to access the individual components of the background color
property, which is compliant with DRM_FORMAT_ARGB16161616.
It's worth noting the alpha component is ignored, hence non-opaque
background colors are not supported.
Signed-off-by: Cristian Ciocaltea <redacted>Reviewed-by: Nícolas F. R. A. Prado <redacted> -- Thanks, Nícolas