[igt-dev] [i-g-t v5 43/52] tests/i915/kms_fence_pin_leak: Add support for Bigjoiner
Sharma, Ananya
ananya.sharma at intel.com
Mon Dec 26 10:58:59 UTC 2022
-----Original Message-----
From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Bhanuprakash Modem
Sent: 15 November 2022 22:39
To: igt-dev at lists.freedesktop.org
Subject: [igt-dev] [i-g-t v5 43/52] tests/i915/kms_fence_pin_leak: Add support for Bigjoiner
This patch will add a check to Skip the subtest if a selected pipe/output combo won't support Bigjoiner or 8K mode.
Example:
* Pipe-D wont support a mode > 5K
* To use 8K mode on a pipe then consecutive pipe must be available & free.
V2: - Use updated helper name
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Reviewed-by: Ananya Sharma <ananya.sharma at intel.com>
tests/i915/kms_fence_pin_leak.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/i915/kms_fence_pin_leak.c b/tests/i915/kms_fence_pin_leak.c index 1972a699..63657a74 100644
--- a/tests/i915/kms_fence_pin_leak.c
+++ b/tests/i915/kms_fence_pin_leak.c
@@ -124,6 +124,9 @@ static void run_single_test(data_t *data, enum pipe pipe, igt_output_t *output)
struct igt_fb fb[2];
int i;
+ igt_info("Using (pipe %s + %s) to run the subtest.\n",
+ kmstest_pipe_name(pipe), igt_output_name(output));
+
igt_output_set_pipe(output, pipe);
mode = igt_output_get_mode(output);
@@ -196,6 +199,12 @@ static void run_test(data_t *data)
enum pipe p;
for_each_pipe_with_valid_output(display, p, output) {
+ igt_display_reset(display);
+
+ igt_output_set_pipe(output, p);
+ if (!i915_pipe_output_combo_valid(display))
+ continue;
+
run_single_test(data, p, output);
return; /* one time ought to be enough */
--
2.38.0
More information about the igt-dev
mailing list