Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/intel/kms_frontbuffer_tracking.c: Execute FBC test on all pipes
@ 2023-11-20  7:34 Nidhi Gupta
  2023-11-20  8:06 ` [igt-dev] ✓ CI.xeBAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nidhi Gupta @ 2023-11-20  7:34 UTC (permalink / raw)
  To: igt-dev; +Cc: Nidhi Gupta

FBC in now valid for all pipes, extend
kms_frontbuffer_tracking@plane-fbc-rte subtest to
execute it on all pipes with valid output.

Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com>
---
 tests/intel/kms_frontbuffer_tracking.c | 32 +++++++++++++++++++++++---
 1 file changed, 29 insertions(+), 3 deletions(-)

diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c
index 213069947..39354dfc8 100644
--- a/tests/intel/kms_frontbuffer_tracking.c
+++ b/tests/intel/kms_frontbuffer_tracking.c
@@ -46,7 +46,7 @@
 
 /**
  * SUBTEST: plane-fbc-rte
- * Description: Sanity test to enable FBC on a plane.
+ * Description: Sanity test to enable FBC on a plane for each pipe.
  * Driver requirement: i915, xe
  * Functionality: fbc
  * Mega feature: General Display Features
@@ -5016,6 +5016,8 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 {
 	struct test_mode t;
 	int devid;
+	enum pipe pipe;
+	igt_output_t *output;
 
 	igt_fixture {
 		setup_environment();
@@ -5052,8 +5054,32 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
 	t.flip = -1;
 	t.tiling = opt.tiling;
 
-	igt_subtest_f("plane-fbc-rte") {
-		plane_fbc_rte_subtest(&t);
+	igt_subtest_with_dynamic("plane-fbc-rte") {
+
+		t.feature = FEATURE_FBC;
+		t.screen = SCREEN_PRIM;
+		t.fbs = FBS_INDIVIDUAL;
+		t.format = FORMAT_DEFAULT;
+		/* Make sure nothing is using these values. */
+		t.flip = -1;
+		t.method = -1;
+		t.tiling = opt.tiling;
+
+		for_each_pipe_with_valid_output(&drm.display, pipe, output) {
+			igt_output_set_pipe(output, pipe);
+			igt_output_override_mode(output, connector_get_mode(output));
+
+			if (!intel_pipe_output_combo_valid(&drm.display))
+				continue;
+
+			init_mode_params(&prim_mode_params, output, pipe);
+
+			igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe),
+					igt_output_name(output)) {
+				init_mode_params(&prim_mode_params, output, pipe);
+				plane_fbc_rte_subtest(&t);
+			}
+		}
 	}
 
 	TEST_MODE_ITER_BEGIN(t)
-- 
2.39.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-20 15:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-20  7:34 [igt-dev] [PATCH i-g-t] tests/intel/kms_frontbuffer_tracking.c: Execute FBC test on all pipes Nidhi Gupta
2023-11-20  8:06 ` [igt-dev] ✓ CI.xeBAT: success for " Patchwork
2023-11-20  8:07 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-11-20 15:37 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox