Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Swati Sharma <swati2.sharma@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v6 1/4] tests/kms_plane_scaling: Prep work
Date: Wed,  1 Mar 2023 17:12:17 +0530	[thread overview]
Message-ID: <20230301114220.15941-2-swati2.sharma@intel.com> (raw)
In-Reply-To: <20230301114220.15941-1-swati2.sharma@intel.com>

struct can be reused to add more test cases.

v2: -don't declare list of lists[JP]

Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
 tests/kms_plane_scaling.c | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 74554915f..ecb4087f4 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -43,6 +43,15 @@ typedef struct {
 	bool extended;
 } data_t;
 
+struct invalid_paramtests {
+	const char *testname;
+	uint32_t planesize[2];
+	struct {
+		enum igt_atomic_plane_properties prop;
+		uint32_t value;
+	} params[8];
+};
+
 const struct {
 	const char * const describe;
 	const char * const name;
@@ -901,14 +910,7 @@ static void invalid_parameter_tests(data_t *d)
 	igt_plane_t *plane;
 	int rval;
 
-	const struct {
-		const char *testname;
-		uint32_t planesize[2];
-		struct {
-			enum igt_atomic_plane_properties prop;
-			uint32_t value;
-		} params[8];
-	} paramtests[] = {
+	static const struct invalid_paramtests paramtests[] = {
 		{
 			.testname = "less-than-1-height-src",
 			.planesize = {256, 8},
-- 
2.25.1

  reply	other threads:[~2023-03-01 11:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-01 11:42 [igt-dev] [PATCH i-g-t v6 0/4] Validate max source size Swati Sharma
2023-03-01 11:42 ` Swati Sharma [this message]
2023-03-01 11:42 ` [igt-dev] [PATCH i-g-t v6 2/4] tests/kms_plane_scaling: Minor fixes Swati Sharma
2023-03-01 11:42 ` [igt-dev] [PATCH i-g-t v6 3/4] tests/kms_plane_scaling: Add test to validate max source size Swati Sharma
2023-03-01 19:58   ` Juha-Pekka Heikkila
2023-03-03  7:40     ` Swati Sharma
2023-03-01 11:42 ` [igt-dev] [PATCH i-g-t v6 4/4] HAX: Add i915-max-source-size to fast-feedback.testlist Swati Sharma
2023-03-01 12:39 ` [igt-dev] ✗ Fi.CI.BAT: failure for Validate max source size (rev8) Patchwork
2023-03-01 16:15 ` [igt-dev] ✓ Fi.CI.BAT: success for Validate max source size (rev9) Patchwork
2023-03-03  3:57 ` [igt-dev] ✓ Fi.CI.IGT: " 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=20230301114220.15941-2-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