[igt-dev] [PATCH igt] tests/kms_getfb: Fix on non-i915 devices
Juha-Pekka Heikkila
juhapekka.heikkila at gmail.com
Fri Jun 17 07:56:19 UTC 2022
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
On 17.6.2022 1.55, Rob Clark wrote:
> From: Rob Clark <robdclark at chromium.org>
>
> intel_get_drm_devid() will assert that it is i915.. so we need to
> require that first in order for getfb-reject-ccs to skip instead of
> crash.
>
> Signed-off-by: Rob Clark <robdclark at chromium.org>
> ---
> tests/kms_getfb.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/kms_getfb.c b/tests/kms_getfb.c
> index b3a8d265..2e4552a0 100644
> --- a/tests/kms_getfb.c
> +++ b/tests/kms_getfb.c
> @@ -265,6 +265,7 @@ static void test_duplicate_handles(int fd)
> struct drm_mode_fb_cmd2 add_ccs = { };
> struct drm_mode_fb_cmd get = { };
>
> + igt_require(is_i915_device(fd));
> igt_require_f(!HAS_FLATCCS(intel_get_drm_devid(fd)),
> "skip because flat ccs has only one buffer.\n");
>
More information about the igt-dev
mailing list