From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_plane_multiple: Use same modifier for reference crc as for test crc
Date: Wed, 20 Oct 2021 15:03:27 +0300 [thread overview]
Message-ID: <YXAFjysN60Y69ISY@intel.com> (raw)
In-Reply-To: <20211020091238.28554-1-juhapekka.heikkila@gmail.com>
On Wed, Oct 20, 2021 at 12:12:38PM +0300, Juha-Pekka Heikkila wrote:
> Create reference crc with same modifier as is used for testing. This
> will reduce non test related anomalies.
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
> tests/kms_plane_multiple.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c
> index ece00097e..30e4bcc0d 100644
> --- a/tests/kms_plane_multiple.c
> +++ b/tests/kms_plane_multiple.c
> @@ -111,10 +111,13 @@ get_reference_crc(data_t *data, igt_output_t *output, enum pipe pipe,
>
> igt_create_color_fb(data->drm_fd, mode->hdisplay, mode->vdisplay,
> DRM_FORMAT_XRGB8888,
> - DRM_FORMAT_MOD_LINEAR,
> + modifier,
> color->red, color->green, color->blue,
> &data->fb[primary->index]);
>
> + igt_skip_on(!igt_plane_has_format_mod(data->plane[primary->index],
> + DRM_FORMAT_XRGB8888, modifier));
> +
Maybe do that before the create_fb()?
Otherwise seems fine.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> igt_plane_set_fb(data->plane[primary->index], &data->fb[primary->index]);
>
> ret = igt_display_try_commit2(&data->display, COMMIT_ATOMIC);
> --
> 2.28.0
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2021-10-20 12:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-20 9:12 [igt-dev] [PATCH i-g-t] tests/kms_plane_multiple: Use same modifier for reference crc as for test crc Juha-Pekka Heikkila
2021-10-20 10:08 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-10-20 11:54 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-10-20 12:03 ` Ville Syrjälä [this message]
2021-10-20 12:53 ` [igt-dev] [PATCH i-g-t] " Juha-Pekka Heikkila
-- strict thread matches above, loose matches on Subject: below --
2021-11-16 18:23 Juha-Pekka Heikkila
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=YXAFjysN60Y69ISY@intel.com \
--to=ville.syrjala@linux.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.