[igt-dev] [i-g-t] tests/i915/gem_bad_reloc: Check reloc support
Tejas Upadhyay
tejaskumarx.surendrakumar.upadhyay at intel.com
Wed May 19 10:11:24 UTC 2021
GEN12/12+ has no reloc support, thus need to check
reloc support in the test.
Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay at intel.com>
---
tests/i915/gem_bad_reloc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/i915/gem_bad_reloc.c b/tests/i915/gem_bad_reloc.c
index 6acc1724..3d4834bc 100644
--- a/tests/i915/gem_bad_reloc.c
+++ b/tests/i915/gem_bad_reloc.c
@@ -191,6 +191,8 @@ igt_main
igt_fixture {
fd = drm_open_driver(DRIVER_INTEL);
igt_require_gem(fd);
+ /* Check if relocations supported by platform */
+ igt_require(gem_has_relocations(fd));
gem_require_blitter(fd);
}
--
2.31.1
More information about the igt-dev
mailing list