From: "Modem, Bhanuprakash" <bhanuprakash.modem@intel.com>
To: Ankit Nautiyal <ankit.k.nautiyal@intel.com>,
<igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] tests/intel/kms_dsc: Use high resolution mode for output format subtests
Date: Fri, 22 Mar 2024 16:32:47 +0530 [thread overview]
Message-ID: <ff4d3189-9ee2-4501-b49b-4efa9bd09da4@intel.com> (raw)
In-Reply-To: <20240322081442.4120318-1-ankit.k.nautiyal@intel.com>
On 22-03-2024 01:44 pm, Ankit Nautiyal wrote:
> Currently, we are not using the highest resolution mode for output formats
> other than RGB. For testing other formats we force an output format, and
> try the mode from list of modes.
> Lets call get_highres_mode before using the modes, so that we try modes
> that are sorted in descending order of resolution. This is to ensure we
> try with higher resolution mode and use DSC with that mode.
>
> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
> ---
> tests/intel/kms_dsc.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tests/intel/kms_dsc.c b/tests/intel/kms_dsc.c
> index b5c0fa6ab925..9b48caf762f1 100644
> --- a/tests/intel/kms_dsc.c
> +++ b/tests/intel/kms_dsc.c
> @@ -184,10 +184,10 @@ static void update_display(data_t *data, uint32_t test_type)
> igt_skip_on(!igt_plane_has_format_mod(primary, data->plane_format,
> DRM_FORMAT_MOD_LINEAR));
>
> + mode = get_highres_mode(output);
Irrespective of the formats, this ensures to try with the highest
possible resolution.
Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
> +
> do {
> - if (data->output_format == DSC_FORMAT_RGB)
> - mode = get_highres_mode(output);
> - else
> + if (data->output_format != DSC_FORMAT_RGB && index > 0)
> mode = get_next_mode(output, index++);
>
> if (mode == NULL)
next prev parent reply other threads:[~2024-03-22 11:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-22 8:14 [PATCH i-g-t] tests/intel/kms_dsc: Use high resolution mode for output format subtests Ankit Nautiyal
2024-03-22 10:13 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-03-22 10:26 ` ✓ CI.xeBAT: " Patchwork
2024-03-22 11:02 ` Modem, Bhanuprakash [this message]
2024-03-23 8:02 ` ✗ 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=ff4d3189-9ee2-4501-b49b-4efa9bd09da4@intel.com \
--to=bhanuprakash.modem@intel.com \
--cc=ankit.k.nautiyal@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