[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_basic: Skip subtest gtt if gtt mapping is unavailable

Antonio Argenziano antonio.argenziano at intel.com
Fri Jan 31 17:04:16 UTC 2020


The subtest tries to do a gtt mapping but if there is no mappable
aperture that is not possible.

v2:
	- Skip the whole dynamic subtest. (Petri)

Signed-off-by: Antonio Argenziano <antonio.argenziano at intel.com>
Cc: Dixit, Ashutosh <ashutosh.dixit at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Petri Latvala <petri.latvala at intel.com>
---
 tests/i915/gem_exec_basic.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/i915/gem_exec_basic.c b/tests/i915/gem_exec_basic.c
index 70dce34b..b3c56369 100644
--- a/tests/i915/gem_exec_basic.c
+++ b/tests/i915/gem_exec_basic.c
@@ -141,6 +141,8 @@ igt_main
 	}
 
 	igt_subtest_with_dynamic("gtt") {
+		gem_require_mappable_ggtt(fd);
+
 		__for_each_physical_engine(fd, e) {
 			igt_dynamic_f("%s", e->name)
 				gtt(fd, e->flags);
-- 
2.21.0



More information about the igt-dev mailing list