[PATCH v4 3/4] drm/vkms: Support setting custom background color

Nícolas F. R. A. Prado nfraprado at collabora.com
Mon Jan 26 10:25:35 PST 2026


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 <cristian.ciocaltea at collabora.com>

Reviewed-by: Nícolas F. R. A. Prado <nfraprado at collabora.com>

-- 
Thanks,

Nícolas



More information about the linux-arm-kernel mailing list