[igt-dev] [PATCH igt] tests/kms_getfb: Fix on non-i915 devices
Rob Clark
robdclark at gmail.com
Thu Jun 16 22:55:10 UTC 2022
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");
--
2.36.1
More information about the igt-dev
mailing list