From: Kunal Joshi <kunal1.joshi@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Kunal Joshi <kunal1.joshi@intel.com>, Jeevan B <jeevan.b@intel.com>
Subject: [PATCH i-g-t 1/4] tests/intel/kms_joiner: refactor set_all_master_pipes_for_platform
Date: Tue, 18 Feb 2025 20:31:18 +0530 [thread overview]
Message-ID: <20250218150121.2132934-2-kunal1.joshi@intel.com> (raw)
In-Reply-To: <20250218150121.2132934-1-kunal1.joshi@intel.com>
refactor set_all_master_pipes_for_platform for readable code
movement.
Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com>
Reviewed-by: Jeevan B <jeevan.b@intel.com>
---
tests/intel/kms_joiner.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/intel/kms_joiner.c b/tests/intel/kms_joiner.c
index 062a0e49d..080e8ff52 100644
--- a/tests/intel/kms_joiner.c
+++ b/tests/intel/kms_joiner.c
@@ -106,13 +106,13 @@ typedef struct {
static int max_dotclock;
-static void set_all_master_pipes_for_platform(data_t *data)
+static void set_all_master_pipes_for_platform(igt_display_t *display, uint32_t *master_pipes)
{
enum pipe pipe;
for (pipe = PIPE_A; pipe < IGT_MAX_PIPES - 1; pipe++) {
- if (data->display.pipes[pipe].enabled && data->display.pipes[pipe + 1].enabled) {
- data->master_pipes |= BIT(pipe);
+ if (display->pipes[pipe].enabled && display->pipes[pipe + 1].enabled) {
+ *master_pipes |= BIT(pipe);
igt_info("Found master pipe %s\n", kmstest_pipe_name(pipe));
}
}
@@ -561,7 +561,7 @@ igt_main
data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_XE);
kmstest_set_vt_graphics_mode();
igt_display_require(&data.display, data.drm_fd);
- set_all_master_pipes_for_platform(&data);
+ set_all_master_pipes_for_platform(&data.display, &data.master_pipes);
igt_require(data.display.is_atomic);
max_dotclock = igt_get_max_dotclock(data.drm_fd);
--
2.25.1
next prev parent reply other threads:[~2025-02-18 14:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-18 15:01 [PATCH i-g-t 0/4] add test to validate uhbr/non-uhbr over sst/mst Kunal Joshi
2025-02-18 15:01 ` Kunal Joshi [this message]
2025-02-18 15:01 ` [PATCH i-g-t 2/4] tests/intel/kms_joiner_helper: add helper for joiner-related functions Kunal Joshi
2025-02-18 15:01 ` [PATCH i-g-t 3/4] lib/igt_kms: add function to set link params Kunal Joshi
2025-02-18 15:01 ` [PATCH i-g-t 4/4] tests/intel/kms_dp_link_training: add tests for UHBR/NON-UHBR over SST/MST Kunal Joshi
2025-02-18 15:41 ` ✓ Xe.CI.BAT: success for add test to validate uhbr/non-uhbr over sst/mst (rev5) Patchwork
2025-02-18 15:52 ` ✗ i915.CI.BAT: failure " Patchwork
2025-02-19 7:27 ` ✗ Xe.CI.Full: " Patchwork
2025-02-19 9:20 ` ✓ i915.CI.BAT: success " Patchwork
2025-02-19 9:24 ` Patchwork
2025-02-19 11:09 ` ✗ i915.CI.Full: failure " Patchwork
2025-02-20 6:40 ` [PATCH i-g-t 0/4] add test to validate uhbr/non-uhbr over sst/mst Joshi, Kunal1
-- strict thread matches above, loose matches on Subject: below --
2025-02-17 6:42 Kunal Joshi
2025-02-17 6:42 ` [PATCH i-g-t 1/4] tests/intel/kms_joiner: refactor set_all_master_pipes_for_platform Kunal Joshi
2025-02-18 7:51 ` B, Jeevan
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=20250218150121.2132934-2-kunal1.joshi@intel.com \
--to=kunal1.joshi@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jeevan.b@intel.com \
/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