[igt-dev] [PATCH i-g-t v2 7/9] tests/kms_color: Dump the CTM before/after color values
Shankar, Uma
uma.shankar at intel.com
Thu May 4 21:44:28 UTC 2023
> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Ville Syrjala
> Sent: Tuesday, April 11, 2023 9:46 PM
> To: igt-dev at lists.freedesktop.org
> Subject: [igt-dev] [PATCH i-g-t v2 7/9] tests/kms_color: Dump the CTM before/after
> color values
>
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Include the before/after color values in the debug output to help with diagnosing
> failures.
Looks Good to me.
Reviewed-by: Uma Shankar <uma.shankar at intel.com>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
> tests/kms_color.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/tests/kms_color.c b/tests/kms_color.c index
> 35083122dfbf..1ec097953c9d 100644
> --- a/tests/kms_color.c
> +++ b/tests/kms_color.c
> @@ -511,6 +511,14 @@ static bool test_pipe_ctm(data_t *data,
> set_gamma(data, primary->pipe, gamma_linear);
> }
>
> + igt_debug("color before[0] %f,%f,%f\n", before[0].r, before[0].g,
> before[0].b);
> + igt_debug("color before[1] %f,%f,%f\n", before[1].r, before[1].g,
> before[1].b);
> + igt_debug("color before[2] %f,%f,%f\n", before[2].r, before[2].g,
> +before[2].b);
> +
> + igt_debug("color after[0] %f,%f,%f\n", after[0].r, after[0].g, after[0].b);
> + igt_debug("color after[1] %f,%f,%f\n", after[1].r, after[1].g, after[1].b);
> + igt_debug("color after[2] %f,%f,%f\n", after[2].r, after[2].g,
> +after[2].b);
> +
> disable_ctm(primary->pipe);
> igt_display_commit(&data->display);
>
> --
> 2.39.2
More information about the igt-dev
mailing list