[igt-dev] [PATCH i-g-t] tests/kms_flip_scaled_crc: skip test if no requested mode and exceed cdclk limits
Kahola, Mika
mika.kahola at intel.com
Tue Mar 30 12:34:04 UTC 2021
> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Juha-
> Pekka Heikkila
> Sent: Thursday, March 25, 2021 7:12 PM
> To: igt-dev at lists.freedesktop.org
> Subject: [igt-dev] [PATCH i-g-t] tests/kms_flip_scaled_crc: skip test if no
> requested mode and exceed cdclk limits
>
> If there was no requested 640p or 1080p mode available in connector and
> flipping to scaled fb fail with einval assume cdclk limits were exceeded and
> skip test instead of failing.
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Reviewed-by: Mika Kahola <mika.kahola at intel.com>
> ---
> tests/kms_flip_scaled_crc.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tests/kms_flip_scaled_crc.c b/tests/kms_flip_scaled_crc.c index
> c41709b68..35417396e 100644
> --- a/tests/kms_flip_scaled_crc.c
> +++ b/tests/kms_flip_scaled_crc.c
> @@ -204,6 +204,9 @@ static void test_flip_to_scaled(data_t *data, uint32_t
> index, enum pipe pipe,
>
> igt_require_f(ret != -ERANGE,
> "Platform scaling limits exceeded, skipping.\n");
> + igt_require_f(!(ret == -EINVAL && !modetoset),
> + "No %dp and default mode too big, cdclk limits exceeded.
> Skipping.\n",
> + data->attemptmodeheight);
> igt_assert_eq(ret, 0);
>
> igt_assert(read(data->drm_fd, &ev, sizeof(ev)) == sizeof(ev));
> --
> 2.28.0
>
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
More information about the igt-dev
mailing list