From: Swati Sharma <swati2.sharma@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Swati Sharma <swati2.sharma@intel.com>,
Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Subject: [PATCH i-g-t,v5 1/4] lib/igt_kms: Add igt_get_joined_pipes_name()
Date: Thu, 30 Apr 2026 01:21:12 +0530 [thread overview]
Message-ID: <20260429195115.2332923-2-swati2.sharma@intel.com> (raw)
In-Reply-To: <20260429195115.2332923-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)
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
lib/igt_kms.c | 22 ++++++++++++++++++++++
lib/igt_kms.h | 1 +
2 files changed, 23 insertions(+)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 2efdfb85f..bece27ff6 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1906,6 +1906,28 @@ bool kmstest_force_connector_joiner(int drm_fd, drmModeConnector *connector, int
return true;
}
+/**
+ * igt_get_joined_pipes_name:
+ * @val: forced value
+ *
+ * Returns: A joined_pipes enum value into a readable string.
+ */
+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);
+ }
+}
+
/**
* kmstest_force_edid:
* @drm_fd: drm file descriptor
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index fcbb6a5ad..6898cd981 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -1280,6 +1280,7 @@ void igt_set_link_params(int drm_fd, igt_output_t *output,
int igt_backlight_read(int *result, const char *fname, igt_backlight_context_t *context);
int igt_backlight_write(int value, const char *fname, igt_backlight_context_t *context);
uint32_t igt_get_connected_output_count(igt_display_t *display);
+const char *igt_get_joined_pipes_name(enum joined_pipes val);
drmModePropertyBlobRes *igt_get_writeback_formats_blob(igt_output_t *output);
--
2.25.1
next prev parent reply other threads:[~2026-04-29 19:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-29 19:51 [PATCH i-g-t,v5 0/4] Add dsc+bigjoiner subtest Swati Sharma
2026-04-29 19:51 ` Swati Sharma [this message]
2026-04-30 7:22 ` [PATCH i-g-t, v5 1/4] lib/igt_kms: Add igt_get_joined_pipes_name() Jani Nikula
2026-04-30 10:00 ` Sharma, Swati2
2026-04-29 19:51 ` [PATCH i-g-t, v5 2/4] tests/kms_joiner_helper: Add igt_is_joiner_supported_by_source() Swati Sharma
2026-04-29 19:51 ` [PATCH i-g-t,v5 3/4] tests/intel/kms_dsc_helper: Add helper func() Swati Sharma
2026-04-29 19:51 ` [PATCH i-g-t, v5 4/4] tests/intel/kms_dsc: Add force dsc and joiner test cases Swati Sharma
2026-04-30 7:33 ` Jani Nikula
2026-04-30 10:04 ` Sharma, Swati2
2026-04-29 21:24 ` ✓ Xe.CI.BAT: success for Add dsc+bigjoiner subtest (rev7) Patchwork
2026-04-29 21:33 ` ✓ i915.CI.BAT: " Patchwork
2026-04-30 7:03 ` ✗ i915.CI.Full: failure " Patchwork
2026-04-30 9:29 ` ✗ 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=20260429195115.2332923-2-swati2.sharma@intel.com \
--to=swati2.sharma@intel.com \
--cc=ankit.k.nautiyal@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