[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 00:15:16 UTC 2020


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

Signed-off-by: Antonio Argenziano <antonio.argenziano at intel.com>
---
 tests/i915/gem_exec_basic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/i915/gem_exec_basic.c b/tests/i915/gem_exec_basic.c
index 70dce34b..08336168 100644
--- a/tests/i915/gem_exec_basic.c
+++ b/tests/i915/gem_exec_basic.c
@@ -93,6 +93,7 @@ static void gtt(int fd, uint64_t flags)
 	struct drm_i915_gem_exec_object2 *exec;
 	uint32_t handle;
 
+	gem_require_mappable_ggtt(fd);
 	gem_require_ring(fd, flags);
 
 	handle = gem_create(fd, 4096);
-- 
2.21.0



More information about the igt-dev mailing list