Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: Rob Clark <robdclark@gmail.com>, igt-dev@lists.freedesktop.org
Cc: Rob Clark <robdclark@chromium.org>
Subject: Re: [igt-dev] [PATCH v3] tests/kms_plane: Handle hw without legacy gamma support
Date: Mon, 7 Aug 2023 21:29:04 +0300	[thread overview]
Message-ID: <90bf29f0-a403-5cd0-680f-fc8595e64627@gmail.com> (raw)
In-Reply-To: <20230807165411.206456-1-robdclark@gmail.com>

Hi Rob,

On 7.8.2023 19.54, Rob Clark wrote:
> From: Rob Clark <robdclark@chromium.org>
> 
> Skip the tests which require legacy gamma, instead of failing, if the hw
> does not support legacy gamma.
> 
> v2: igt_require(lut_size > 0) instead
> v3: simplify patch
> 
> Signed-off-by: Rob Clark <robdclark@chromium.org>
> ---
>   tests/kms_plane.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
> index 67cff61d6cd1..44cad2bf2491 100644
> --- a/tests/kms_plane.c
> +++ b/tests/kms_plane.c
> @@ -469,6 +469,8 @@ static void set_legacy_lut(data_t *data, enum pipe pipe,
>   	lut_size = crtc->gamma_size;
>   	drmModeFreeCrtc(crtc);
>   
> +	igt_require(lut_size > 0);
> +

Is this something you really want on your hw? This lut stuff is 
originally coming from this patch

https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/commit/093fa482371795c3aa246509994eb21907f501b9

where it is mentioned:

---
We also abuse the legacy LUT to drop the precision down to 6 bits
so that still errors causes by the RGB<->YCbCr conversion end up
being ignored.
---

With your change you'd skip testing of all available pixel 
formats/modifiers combos on your driver while originally this feature is 
mostly intended just to avoid hitting Intel hw related anomalies. Do 
those tests work for you if you just not set that lut?

/Juha-Pekka

>   	lut = malloc(sizeof(uint16_t) * lut_size);
>   
>   	for (i = 0; i < lut_size; i++)

  reply	other threads:[~2023-08-07 18:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-07 16:54 [igt-dev] [PATCH v3] tests/kms_plane: Handle hw without legacy gamma support Rob Clark
2023-08-07 18:29 ` Juha-Pekka Heikkila [this message]
2023-08-07 18:48   ` Rob Clark
2023-08-07 20:01     ` Rob Clark
2023-08-07 18:50 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane: Handle hw without legacy gamma support (rev3) Patchwork
2023-08-07 19:18 ` [igt-dev] ○ CI.xeBAT: info " Patchwork
2023-08-07 23:52 ` [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=90bf29f0-a403-5cd0-680f-fc8595e64627@gmail.com \
    --to=juhapekka.heikkila@gmail.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=robdclark@chromium.org \
    --cc=robdclark@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