From: Nidhi Gupta <nidhi1.gupta@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Nidhi Gupta <nidhi1.gupta@intel.com>
Subject: [igt-dev] [PATCH i-g-t] tests/intel/kms_frontbuffer_tracking.c: Execute FBC test on all pipes
Date: Mon, 20 Nov 2023 13:04:24 +0530 [thread overview]
Message-ID: <20231120073424.994-1-nidhi1.gupta@intel.com> (raw)
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
next reply other threads:[~2023-11-20 7:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-20 7:34 Nidhi Gupta [this message]
2023-11-20 8:06 ` [igt-dev] ✓ CI.xeBAT: success for tests/intel/kms_frontbuffer_tracking.c: Execute FBC test on all pipes Patchwork
2023-11-20 8:07 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-11-20 15:37 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=20231120073424.994-1-nidhi1.gupta@intel.com \
--to=nidhi1.gupta@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