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/intel/kms_frontbuffer_tracking: Add new subtest to test FBC on each pipe
Date: Thu, 23 Nov 2023 17:02:28 +0530 [thread overview]
Message-ID: <20231123113228.30729-1-nidhi1.gupta@intel.com> (raw)
Added a new subtest as kms_frontbuffer_tracking@pipe-fbc-rte.
It will execute on each pipe with valid output and check if FBC is
enabled or not.
Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com>
---
tests/intel/kms_frontbuffer_tracking.c | 50 ++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c
index 213069947..bb29be831 100644
--- a/tests/intel/kms_frontbuffer_tracking.c
+++ b/tests/intel/kms_frontbuffer_tracking.c
@@ -53,6 +53,15 @@
* Test category: functionality test
*/
+/**
+ * SUBTEST: pipe-fbc-rte
+ * Description: Sanity test to enable FBC on each pipe.
+ * Driver requirement: i915, xe
+ * Functionality: fbc
+ * Mega feature: General Display Features
+ * Test category: functionality test
+ */
+
#define TIME SLOW_QUICK(1000, 10000)
IGT_TEST_DESCRIPTION("Test the Kernel's frontbuffer tracking mechanism and "
@@ -5015,7 +5024,10 @@ struct option long_options[] = {
igt_main_args("", long_options, help_str, opt_handler, NULL)
{
struct test_mode t;
+ struct modeset_params default_mode_params;
int devid;
+ enum pipe pipe;
+ igt_output_t *output;
igt_fixture {
setup_environment();
@@ -5056,6 +5068,44 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
plane_fbc_rte_subtest(&t);
}
+ igt_subtest_with_dynamic("pipe-fbc-rte") {
+
+ t.pipes = PIPE_SINGLE;
+ t.feature = FEATURE_FBC;
+ t.screen = SCREEN_PRIM;
+ t.fbs = FBS_INDIVIDUAL;
+ t.format = FORMAT_DEFAULT;
+ t.method = IGT_DRAW_BLT;
+ /* Make sure nothing is using these values. */
+ t.flip = -1;
+ t.tiling = opt.tiling;
+
+ default_mode_params = prim_mode_params;
+
+ for_each_pipe(&drm.display, pipe) {
+
+ if (pipe == default_mode_params.pipe) {
+ igt_info("pipe-%s: FBC validated in other subtest\n", kmstest_pipe_name(pipe));
+ continue;
+ }
+
+ if (!intel_fbc_supported_on_chipset(drm.fd, pipe)) {
+ igt_info("Can't test FBC: not supported on pipe-%s\n", kmstest_pipe_name(pipe));
+ continue;
+ }
+
+ for_each_valid_output_on_pipe(&drm.display, pipe, output) {
+ init_mode_params(&prim_mode_params, output, pipe);
+ igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe),
+ igt_output_name(output))
+ rte_subtest(&t);
+ break; /* One output is enough. */
+ }
+
+ prim_mode_params = default_mode_params;
+ }
+ }
+
TEST_MODE_ITER_BEGIN(t)
igt_subtest_f("%s-%s-%s-%s-%s-draw-%s",
--
2.39.0
next reply other threads:[~2023-11-23 11:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-23 11:32 Nidhi Gupta [this message]
2023-11-23 12:39 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/intel/kms_frontbuffer_tracking: Add new subtest to test FBC on each pipe (rev2) Patchwork
2023-11-23 14:12 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-11-25 7:32 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-11-27 5:39 ` [igt-dev] [PATCH i-g-t v2] tests/intel/kms_frontbuffer_tracking: Add new subtest to test FBC on each pipe Modem, Bhanuprakash
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=20231123113228.30729-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