From: Swati Sharma <swati2.sharma@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v2 2/3] tests/kms_plane_scaling: Minor fixes
Date: Fri, 17 Feb 2023 13:50:16 +0530 [thread overview]
Message-ID: <20230217082017.27753-3-swati2.sharma@intel.com> (raw)
In-Reply-To: <20230217082017.27753-1-swati2.sharma@intel.com>
Minor fixes are done in the existing test.
v2: -indentation (JP)
-added invalid_parameter_tests() inside igt_subtest_group
macro (JP)
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
tests/kms_plane_scaling.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index ecb4087f4..795e3daaf 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -931,9 +931,9 @@ static void invalid_parameter_tests(data_t *d)
plane = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
igt_create_fb(d->drm_fd, 256, 256,
- DRM_FORMAT_XRGB8888,
- DRM_FORMAT_MOD_NONE,
- &fb);
+ DRM_FORMAT_XRGB8888,
+ DRM_FORMAT_MOD_NONE,
+ &fb);
}
igt_describe("test parameters which should not be accepted");
@@ -943,14 +943,13 @@ static void invalid_parameter_tests(data_t *d)
igt_plane_set_position(plane, 0, 0);
igt_plane_set_fb(plane, &fb);
igt_plane_set_size(plane,
- paramtests[i].planesize[0],
- paramtests[i].planesize[1]);
-
+ paramtests[i].planesize[0],
+ paramtests[i].planesize[1]);
for (uint32_t j = 0; paramtests[i].params[j].prop != ~0; j++)
igt_plane_set_prop_value(plane,
- paramtests[i].params[j].prop,
- paramtests[i].params[j].value);
+ paramtests[i].params[j].prop,
+ paramtests[i].params[j].value);
rval = igt_display_try_commit2(&d->display, COMMIT_ATOMIC);
@@ -1128,7 +1127,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
igt_subtest_f("2x-scaler-multi-pipe")
test_scaler_with_multi_pipe_plane(&data);
- invalid_parameter_tests(&data);
+ igt_subtest_group
+ invalid_parameter_tests(&data);
igt_fixture {
igt_display_fini(&data.display);
--
2.25.1
next prev parent reply other threads:[~2023-02-17 8:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-17 8:20 [igt-dev] [PATCH i-g-t v2 0/3] Validate max source size Swati Sharma
2023-02-17 8:20 ` [igt-dev] [PATCH i-g-t v2 1/3] tests/kms_plane_scaling: Prep work Swati Sharma
2023-02-17 8:20 ` Swati Sharma [this message]
2023-02-17 8:20 ` [igt-dev] [PATCH i-g-t v2 3/3] tests/kms_plane_scaling: Add test to validate max source size Swati Sharma
2023-02-17 15:34 ` [igt-dev] ✓ Fi.CI.BAT: success for Validate max source size (rev3) Patchwork
2023-02-17 23:16 ` [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=20230217082017.27753-3-swati2.sharma@intel.com \
--to=swati2.sharma@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