[v5 1/4] tests/kms_plane_scaling: Prep work
Swati Sharma
swati2.sharma at intel.com
Tue Feb 28 16:52:57 UTC 2023
struct can be reused to add more test cases.
v2: -don't declare list of lists[JP]
Signed-off-by: Swati Sharma <swati2.sharma at 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
More information about the Intel-gfx-trybot
mailing list