From: Swati Sharma <swati2.sharma@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Swati Sharma <swati2.sharma@intel.com>
Subject: [PATCH i-g-t, v6 1/4] tests/intel/kms_joiner_helper: Add igt_get_joined_pipes_name()
Date: Fri, 1 May 2026 00:39:44 +0530 [thread overview]
Message-ID: <20260430190947.2347314-2-swati2.sharma@intel.com> (raw)
In-Reply-To: <20260430190947.2347314-1-swati2.sharma@intel.com>
Add function to transform the enum into a string.
v2: -Improved func() doc (Jeevan)
v3: -Return names without '-' dash prefix (Santhosh)
v4: -Move from lib/igt_kms to tests/intel/kms_joiner_helper (Jani)
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
tests/intel/kms_joiner_helper.c | 22 ++++++++++++++++++++++
tests/intel/kms_joiner_helper.h | 1 +
2 files changed, 23 insertions(+)
diff --git a/tests/intel/kms_joiner_helper.c b/tests/intel/kms_joiner_helper.c
index e24d7ce94..0aa409ac2 100644
--- a/tests/intel/kms_joiner_helper.c
+++ b/tests/intel/kms_joiner_helper.c
@@ -183,3 +183,25 @@ bool igt_assign_pipes_for_outputs(int drm_fd,
}
return true;
}
+
+/**
+ * igt_get_joined_pipes_name:
+ * @val: joined_pipes enum value
+ *
+ * Returns: A readable string for the given joined_pipes enum value.
+ */
+const char *igt_get_joined_pipes_name(enum joined_pipes val)
+{
+ switch (val) {
+ case JOINED_PIPES_DEFAULT:
+ return "";
+ case JOINED_PIPES_NONE:
+ return "none";
+ case JOINED_PIPES_BIG_JOINER:
+ return "bigjoiner";
+ case JOINED_PIPES_ULTRA_JOINER:
+ return "ultrajoiner";
+ default:
+ igt_assert(false);
+ }
+}
diff --git a/tests/intel/kms_joiner_helper.h b/tests/intel/kms_joiner_helper.h
index 6d21e7eb0..1ea871a3b 100644
--- a/tests/intel/kms_joiner_helper.h
+++ b/tests/intel/kms_joiner_helper.h
@@ -17,6 +17,7 @@ bool igt_assign_pipes_for_outputs(int drm_fd,
uint32_t *used_pipes_mask,
uint32_t master_pipes_mask,
uint32_t valid_pipes_mask);
+const char *igt_get_joined_pipes_name(enum joined_pipes val);
enum force_joiner_mode {
FORCE_JOINER_ENABLE = 0,
--
2.25.1
next prev parent reply other threads:[~2026-04-30 19:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-30 19:09 [PATCH i-g-t,v6 0/4] Add dsc+bigjoiner subtest Swati Sharma
2026-04-30 19:09 ` Swati Sharma [this message]
2026-05-15 6:06 ` [PATCH i-g-t, v6 1/4] tests/intel/kms_joiner_helper: Add igt_get_joined_pipes_name() Karthik B S
2026-04-30 19:09 ` [PATCH i-g-t, v6 2/4] tests/kms_joiner_helper: Add igt_is_joiner_supported_by_source() Swati Sharma
2026-05-15 6:18 ` Karthik B S
2026-04-30 19:09 ` [PATCH i-g-t,v6 3/4] tests/intel/kms_dsc_helper: Add helper func() Swati Sharma
2026-05-15 8:36 ` Karthik B S
2026-04-30 19:09 ` [PATCH i-g-t, v6 4/4] tests/intel/kms_dsc: Add force dsc and joiner test cases Swati Sharma
2026-05-15 8:42 ` Karthik B S
2026-04-30 20:34 ` ✓ Xe.CI.BAT: success for Add dsc+bigjoiner subtest (rev8) Patchwork
2026-04-30 20:43 ` ✓ i915.CI.BAT: " Patchwork
2026-05-01 1:26 ` ✗ i915.CI.Full: failure " Patchwork
2026-05-01 7:11 ` ✗ Xe.CI.FULL: " Patchwork
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=20260430190947.2347314-2-swati2.sharma@intel.com \
--to=swati2.sharma@intel.com \
--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