[igt-dev] [PATCH i-g-t] tests/i915/gem_userptr_blits: Add aperture check

Vinay Belgaumkar vinay.belgaumkar at intel.com
Tue Feb 4 01:30:43 UTC 2020


Skip test_map_fixed_invalidate on platforms that do not allow mappable aperture

Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar at intel.com>
---
 tests/i915/gem_userptr_blits.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/i915/gem_userptr_blits.c b/tests/i915/gem_userptr_blits.c
index a8d3783f..99297de1 100644
--- a/tests/i915/gem_userptr_blits.c
+++ b/tests/i915/gem_userptr_blits.c
@@ -729,6 +729,8 @@ static int test_map_fixed_invalidate(int fd, uint32_t flags)
 	uint32_t handle[num_handles];
 	uint32_t *ptr;
 
+	igt_require(can_gtt_mmap);
+
 	ptr = mmap(NULL, ptr_size,
 		   PROT_READ | PROT_WRITE,
 		   MAP_SHARED | MAP_ANONYMOUS,
-- 
2.22.0.245.g4d8ec15c66



More information about the igt-dev mailing list