[igt-dev] [PATCH i-g-t] tests/i915/gem_set_tiling_vs_pwrite: Check if gtt aperture is mappable

Antonio Argenziano antonio.argenziano at intel.com
Mon Feb 3 23:03:40 UTC 2020


The test relies on gtt mapping and fences to be meaningful, therefore
skip if the aperture is not mappable.

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

diff --git a/tests/i915/gem_set_tiling_vs_pwrite.c b/tests/i915/gem_set_tiling_vs_pwrite.c
index 25a28191..b37a2ee4 100644
--- a/tests/i915/gem_set_tiling_vs_pwrite.c
+++ b/tests/i915/gem_set_tiling_vs_pwrite.c
@@ -55,6 +55,7 @@ igt_simple_main
 	uint32_t handle;
 
 	fd = drm_open_driver(DRIVER_INTEL);
+	gem_require_mappable_ggtt(fd);
 
 	for (i = 0; i < OBJECT_SIZE/4; i++)
 		data[i] = i;
-- 
2.21.0



More information about the igt-dev mailing list