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 v2] tests/kms_frontbuffer_tracking: Extend the test to enable FBC for each plane
Date: Tue, 26 Sep 2023 10:24:25 +0530 [thread overview]
Message-ID: <20230926045425.23137-1-nidhi1.gupta@intel.com> (raw)
Added a new subtest to validate FBC on each plane, this new subtest
will first disable the fbc feature on all pipes and planes and then
enable it on all plane one by one and confirm.
v2: Modify tests to disable primary and enable other plane
to check fbc is enabled or not.
Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com>
---
tests/intel/kms_frontbuffer_tracking.c | 39 ++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c
index 215ecdeef..5d9affa4e 100644
--- a/tests/intel/kms_frontbuffer_tracking.c
+++ b/tests/intel/kms_frontbuffer_tracking.c
@@ -1941,6 +1941,30 @@ static void rte_subtest(const struct test_mode *t)
}
}
+static void fbc_rte_subtest(const struct test_mode *t)
+{
+ igt_plane_t *plane;
+
+ prepare_subtest_data(t, NULL);
+
+ unset_all_crtcs();
+ do_assertions(ASSERT_FBC_DISABLED | ASSERT_PSR_DISABLED |
+ DONT_ASSERT_CRC | ASSERT_DRRS_INACTIVE);
+
+ fill_fb_region(&prim_mode_params.primary, COLOR_PRIM_BG);
+ set_mode_for_params(&prim_mode_params);
+
+ for_each_plane_on_pipe(&drm.display, prim_mode_params.pipe, plane) {
+ if (plane->index <= 2) {
+ fill_fb_region(&prim_mode_params.primary, COLOR_PRIM_BG);
+ set_mode_for_params(&prim_mode_params);
+ wanted_crc = &blue_crcs[t->format].crc;
+ fbc_update_last_action();
+ do_assertions(ASSERT_NO_ACTION_CHANGE);
+ }
+ }
+}
+
static void update_wanted_crc(const struct test_mode *t, igt_crc_t *crc)
{
if (t->screen == SCREEN_PRIM)
@@ -5064,6 +5088,21 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
}
}
+ t.pipes = PIPE_SINGLE;
+ t.feature = FEATURE_FBC;
+ t.screen = SCREEN_PRIM;
+ t.plane = PLANE_PRI;
+ 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;
+
+ igt_subtest_f("fbc-%s-rte",
+ pipes_str(t.pipes))
+ fbc_rte_subtest(&t);
+
TEST_MODE_ITER_BEGIN(t)
igt_subtest_f("%s-%s-%s-%s-%s-draw-%s",
--
2.39.0
next reply other threads:[~2023-09-26 4:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 4:54 Nidhi Gupta [this message]
2023-09-26 5:22 ` [igt-dev] ✗ GitLab.Pipeline: warning for tests/kms_frontbuffer_tracking: Extend the test to enable FBC for each plane (rev2) Patchwork
2023-09-26 5:52 ` [igt-dev] ✓ CI.xeBAT: success " Patchwork
2023-09-26 5:52 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-09-26 15:14 ` [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=20230926045425.23137-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