Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/4] lib/igt_kms: Add support for the BACKGROUND_COLOR property.
@ 2026-05-05 19:44 Maarten Lankhorst
  2026-05-05 19:44 ` [PATCH i-g-t 2/4] includes: Remove DRM_XE_VM_BIND_FLAG_DECOMPRESS Maarten Lankhorst
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Maarten Lankhorst @ 2026-05-05 19:44 UTC (permalink / raw)
  To: igt-dev; +Cc: Maarten Lankhorst

The background color is a 64-bits property that contains the ARGB values
of the background with 16 bits for each component.

Add support for the BACKGROUND_COLOR property, and set to pitch black
as the default.

Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
---
 lib/igt_kms.c | 4 ++++
 lib/igt_kms.h | 1 +
 2 files changed, 5 insertions(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 99fc9fa05c..b70aefe697 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -731,6 +731,7 @@ const char * const igt_crtc_prop_names[IGT_NUM_CRTC_PROPS] = {
 	[IGT_CRTC_VRR_ENABLED] = "VRR_ENABLED",
 	[IGT_CRTC_SCALING_FILTER] = "SCALING_FILTER",
 	[IGT_CRTC_SHARPNESS_STRENGTH] = "SHARPNESS_STRENGTH",
+	[IGT_CRTC_BACKGROUND_COLOR] = "BACKGROUND_COLOR",
 };
 
 const char * const igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = {
@@ -2737,6 +2738,9 @@ static void igt_crtc_reset(igt_crtc_t *crtc)
 	if (igt_crtc_has_prop(crtc, IGT_CRTC_SHARPNESS_STRENGTH))
 		igt_crtc_set_prop_value(crtc, IGT_CRTC_SHARPNESS_STRENGTH, 0);
 
+	if (igt_crtc_has_prop(crtc, IGT_CRTC_BACKGROUND_COLOR))
+		igt_crtc_set_prop_value(crtc, IGT_CRTC_BACKGROUND_COLOR, 0xffff000000000000ULL);
+
 	crtc->out_fence_fd = -1;
 }
 
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index a58cb5cd34..71f908d4f5 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -165,6 +165,7 @@ enum igt_atomic_crtc_properties {
        IGT_CRTC_VRR_ENABLED,
        IGT_CRTC_SCALING_FILTER,
        IGT_CRTC_SHARPNESS_STRENGTH,
+       IGT_CRTC_BACKGROUND_COLOR,
        IGT_NUM_CRTC_PROPS
 };
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-05-13 16:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-05 19:44 [PATCH i-g-t 1/4] lib/igt_kms: Add support for the BACKGROUND_COLOR property Maarten Lankhorst
2026-05-05 19:44 ` [PATCH i-g-t 2/4] includes: Remove DRM_XE_VM_BIND_FLAG_DECOMPRESS Maarten Lankhorst
2026-05-13 15:48   ` Kamil Konieczny
2026-05-05 19:44 ` [PATCH i-g-t 3/4] drm-uapi: Update drm_mode.h to latest linux upstream Maarten Lankhorst
2026-05-13 16:02   ` Kamil Konieczny
2026-05-05 19:44 ` [PATCH i-g-t 4/4] tests/kms_color: Add background-color subtest to test the BACKGROUND_COLOR property Maarten Lankhorst
2026-05-05 20:35 ` ✓ Xe.CI.BAT: success for series starting with [i-g-t,1/4] lib/igt_kms: Add support for " Patchwork
2026-05-05 20:39 ` ✗ i915.CI.BAT: failure " Patchwork
2026-05-06  4:04 ` ✗ Xe.CI.FULL: " Patchwork
2026-05-13 15:52 ` [PATCH i-g-t 1/4] " Kamil Konieczny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox