[igt-dev] [PATCH 1/2] tests/kms_plane: Handle hw without legacy gamma support
Juha-Pekka Heikkila
juhapekka.heikkila at gmail.com
Tue Aug 8 07:51:19 UTC 2023
Those ci reported issues are not relating to these changes.
On 7.8.2023 23.12, Rob Clark wrote:
> From: Rob Clark <robdclark at 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
I think this description need to be adjusted a bit to reflect current
change. With this description fixed these two patches are
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
>
> Signed-off-by: Rob Clark <robdclark at chromium.org>
> ---
> tests/kms_plane.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
> index 67cff61d6cd1..a444cdca23e2 100644
> --- a/tests/kms_plane.c
> +++ b/tests/kms_plane.c
> @@ -469,6 +469,10 @@ static void set_legacy_lut(data_t *data, enum pipe pipe,
> lut_size = crtc->gamma_size;
> drmModeFreeCrtc(crtc);
>
> + /* Skip if legacy LUT is not supported: */
> + if (!lut_size)
> + return;
> +
> lut = malloc(sizeof(uint16_t) * lut_size);
>
> for (i = 0; i < lut_size; i++)
More information about the igt-dev
mailing list