linux/drivers/gpu/drm/vkms
Cristian Ciocaltea 0b9eff726d drm/vkms: Support setting custom background color
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.

Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Tested-by: Diederik de Haas <diederik@cknow-tech.com>
Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://patch.msgid.link/20260303-rk3588-bgcolor-v8-3-fee377037ad1@collabora.com
Signed-off-by: Daniel Stone <daniels@collabora.com>
2026-03-18 09:59:57 +00:00
..
tests drm/vkms: Add tests for CTM handling 2025-11-26 23:03:33 +01:00
Kconfig drm/vkms: Add and remove VKMS instances via configfs 2025-10-22 13:19:25 +02:00
Makefile drm/vkms: Add enumerated 1D curve colorop 2025-11-26 23:03:33 +01:00
vkms_colorop.c Merge drm/drm-next into drm-misc-next 2026-02-23 11:48:20 +01:00
vkms_composer.c drm/vkms: Support setting custom background color 2026-03-18 09:59:57 +00:00
vkms_composer.h drm/vkms: Add tests for CTM handling 2025-11-26 23:03:33 +01:00
vkms_config.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vkms_config.h drm/vkms: Add config for default plane pipeline 2025-11-26 23:03:33 +01:00
vkms_configfs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vkms_configfs.h drm/vkms: Add and remove VKMS instances via configfs 2025-10-22 13:19:25 +02:00
vkms_connector.c drm/vkms: Allow to configure connector status via configfs 2025-10-22 13:19:26 +02:00
vkms_connector.h drm/vkms: Allow to configure connector status via configfs 2025-10-22 13:19:26 +02:00
vkms_crtc.c drm/vkms: Support setting custom background color 2026-03-18 09:59:57 +00:00
vkms_drv.c drm/vkms: Remove drm_colorop_pipeline_destroy() from vkms_destroy() 2026-02-10 11:03:10 +05:30
vkms_drv.h drm/vkms: Use s32 for internal color pipeline precision 2025-11-26 23:03:33 +01:00
vkms_formats.c drm/vkms: Add P01* formats 2025-09-05 19:57:26 +02:00
vkms_formats.h drm/vkms: Change YUV helpers to support u16 inputs for conversion 2025-09-05 19:57:25 +02:00
vkms_luts.c drm/vkms: Add enumerated 1D curve colorop 2025-11-26 23:03:33 +01:00
vkms_luts.h drm/vkms: Add enumerated 1D curve colorop 2025-11-26 23:03:33 +01:00
vkms_output.c drm/vkms: Pass plane_cfg to plane initialization 2025-11-26 23:03:32 +01:00
vkms_plane.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vkms_writeback.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00