From: Swati Sharma <swati2.sharma@intel.com>
To: juhapekka.heikkila@gmail.com, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/3] tests/kms_plane_scaling: Prep work
Date: Fri, 17 Feb 2023 13:49:49 +0530 [thread overview]
Message-ID: <6c5ea40f-e29c-8a21-9c77-75e92fd07dc1@intel.com> (raw)
In-Reply-To: <733cee66-81e3-1d13-72c3-b691db892798@gmail.com>
On 16-Feb-23 9:00 PM, Juha-Pekka Heikkila wrote:
> On 15.2.2023 18.59, Swati Sharma wrote:
>> struct can be reused to add more test cases.
>>
>> 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 4a04f42a0..382d199e0 100644
>> --- a/tests/kms_plane_scaling.c
>> +++ b/tests/kms_plane_scaling.c
>> @@ -42,6 +42,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;
>> @@ -827,14 +836,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[2] = {
>
> "static const struct invalid_paramtests paramtests[]" would be better
> here, ie. not declaring here how long is the list of tests
Done. Added new series with the fixes
https://patchwork.freedesktop.org/series/114059/
>
>> {
>> .testname = "less-than-1-height-src",
>> .planesize = {256, 8},
>
--
~Swati Sharma
next prev parent reply other threads:[~2023-02-17 8:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-15 16:59 [igt-dev] [PATCH i-g-t 0/3] Validate max source size Swati Sharma
2023-02-15 16:59 ` [igt-dev] [PATCH i-g-t 1/3] tests/kms_plane_scaling: Prep work Swati Sharma
2023-02-16 15:30 ` Juha-Pekka Heikkila
2023-02-17 8:19 ` Swati Sharma [this message]
2023-02-15 16:59 ` [igt-dev] [PATCH i-g-t 2/3] tests/kms_plane_scaling: Remove extra newline Swati Sharma
2023-02-16 15:31 ` Juha-Pekka Heikkila
2023-02-17 8:20 ` Swati Sharma
2023-02-15 16:59 ` [igt-dev] [PATCH i-g-t 3/3] tests/kms_plane_scaling: Add test to validate max source size Swati Sharma
2023-02-16 15:31 ` Juha-Pekka Heikkila
2023-02-17 8:21 ` Swati Sharma
2023-02-16 19:29 ` Kamil Konieczny
2023-02-17 6:13 ` Juha-Pekka Heikkila
2023-02-17 8:29 ` Swati Sharma
2023-02-15 17:49 ` [igt-dev] ✓ Fi.CI.BAT: success for Validate max source size (rev2) Patchwork
2023-02-16 12:14 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2023-02-15 15:21 [igt-dev] [PATCH i-g-t 0/3] Validate max source size Swati Sharma
2023-02-15 15:21 ` [igt-dev] [PATCH i-g-t 1/3] tests/kms_plane_scaling: Prep work Swati Sharma
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=6c5ea40f-e29c-8a21-9c77-75e92fd07dc1@intel.com \
--to=swati2.sharma@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=juhapekka.heikkila@gmail.com \
/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