[igt-dev] [PATCH i-g-t] tests/i915/gem_largeobject: Skip when aperture is not supported

Vinay Belgaumkar vinay.belgaumkar at intel.com
Wed Jan 29 21:41:16 UTC 2020


Rearrange code to allocate buffer after aperture check.

Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar at intel.com>
Cc: Antonio Argenziano <antonio.argenziano at intel.com>
Cc: Daniel Vetter <daniel.vetter at intel.com>
---
 tests/i915/gem_largeobject.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/i915/gem_largeobject.c b/tests/i915/gem_largeobject.c
index fc9296cd..ded00f07 100644
--- a/tests/i915/gem_largeobject.c
+++ b/tests/i915/gem_largeobject.c
@@ -77,11 +77,12 @@ igt_simple_main
 {
 	int fd;
 
+	fd = drm_open_driver(DRIVER_INTEL);
+	gem_require_mappable_ggtt(fd);
+
 	data = malloc(OBJ_SIZE);
 	igt_assert(data);
 
-	fd = drm_open_driver(DRIVER_INTEL);
-
 	test_large_object(fd);
 
 	free(data);
-- 
2.22.0.245.g4d8ec15c66



More information about the igt-dev mailing list