From: Maarten Lankhorst <dev@lankhorst.se>
To: igt-dev@lists.freedesktop.org
Cc: Maarten Lankhorst <dev@lankhorst.se>
Subject: [PATCH i-g-t 1/4] lib/igt_kms: Add support for the BACKGROUND_COLOR property.
Date: Tue, 5 May 2026 21:44:20 +0200 [thread overview]
Message-ID: <20260505194419.500600-5-dev@lankhorst.se> (raw)
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
next reply other threads:[~2026-05-05 19:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-05 19:44 Maarten Lankhorst [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260505194419.500600-5-dev@lankhorst.se \
--to=dev@lankhorst.se \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox