From: Alex Hung <alex.hung@amd.com>
To: Melissa Wen <mwen@igalia.com>, igt-dev@lists.freedesktop.org
Cc: Petri Latvala <petri.latvala@intel.com>, kernel-dev@igalia.com
Subject: Re: [igt-dev] [PATCH i-g-t v2] tests/kms_color: check degamma and gamma props in CTM subtests
Date: Mon, 7 Nov 2022 13:31:11 -0700 [thread overview]
Message-ID: <58e72002-e40a-7557-ea8c-f5fe1c315c96@amd.com> (raw)
In-Reply-To: <20221107195227.1741453-1-mwen@igalia.com>
On 2022-11-07 12:52, Melissa Wen wrote:
> Some CTM subtests generate and set degamma/gamma LUTs without checking
> if these properties are supported by the driver. Therefore, if degamma
> and gamma are used in the subtest, check the color properties before
> generate and set LUTs. If these properties are not supported, these
> subtests will skip instead of failing.
>
> v2:
> - remove unnecessary set_luts check (Alex Hung)
>
> Signed-off-by: Melissa Wen <mwen@igalia.com>
> ---
> tests/kms_color.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/tests/kms_color.c b/tests/kms_color.c
> index e4dc2465..1902cd0c 100644
> --- a/tests/kms_color.c
> +++ b/tests/kms_color.c
> @@ -472,9 +472,6 @@ static bool test_pipe_ctm(data_t *data,
>
> igt_require(igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_CTM));
>
> - degamma_linear = generate_table(data->degamma_lut_size, 1.0);
> - gamma_linear = generate_table(data->gamma_lut_size, 1.0);
> -
> igt_output_set_pipe(output, primary->pipe->pipe);
> igt_output_override_mode(output, mode);
>
> @@ -502,6 +499,12 @@ static bool test_pipe_ctm(data_t *data,
> * rounding issues and inaccuracies leading to crc mismatch.
> */
> if (memcmp(before, after, sizeof(color_t))) {
> + igt_require(igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_DEGAMMA_LUT));
> + igt_require(igt_pipe_obj_has_prop(primary->pipe, IGT_CRTC_GAMMA_LUT));
> +
> + degamma_linear = generate_table(data->degamma_lut_size, 1.0);
> + gamma_linear = generate_table(data->gamma_lut_size, 1.0);
> +
> set_degamma(data, primary->pipe, degamma_linear);
> set_gamma(data, primary->pipe, gamma_linear);
> } else {
Reviewed-by: Alex Hung <alex.hung@amd.com>
next prev parent reply other threads:[~2022-11-07 20:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-07 19:52 [igt-dev] [PATCH i-g-t v2] tests/kms_color: check degamma and gamma props in CTM subtests Melissa Wen
2022-11-07 20:31 ` Alex Hung [this message]
2022-11-08 19:52 ` Melissa Wen
2022-11-07 22:07 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_color: check degamma and gamma props in CTM subtests (rev2) Patchwork
2022-11-08 3:47 ` [igt-dev] ✗ 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=58e72002-e40a-7557-ea8c-f5fe1c315c96@amd.com \
--to=alex.hung@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kernel-dev@igalia.com \
--cc=mwen@igalia.com \
--cc=petri.latvala@intel.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