[Intel-gfx] [PATCH i-g-t v2 5/6] tests/gem_concurrent_all: drop stolen memory related subtests

Daniele Ceraolo Spurio daniele.ceraolospurio at intel.com
Thu Oct 12 22:29:08 UTC 2017


The feature was never merged and there has been no progress in the
last year. The tests are currently excluded from compilation with and
ifdef.

v2: keep create_cpu_require around (Chris)

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/gem_concurrent_all.c | 29 -----------------------------
 1 file changed, 29 deletions(-)

diff --git a/tests/gem_concurrent_all.c b/tests/gem_concurrent_all.c
index 201b491..bde451a 100644
--- a/tests/gem_concurrent_all.c
+++ b/tests/gem_concurrent_all.c
@@ -170,34 +170,8 @@ static void can_create_private(const struct create *create, unsigned count)
 }
 #endif
 
-#if HAVE_CREATE_STOLEN
-static drm_intel_bo *
-create_stolen_bo(drm_intel_bufmgr *bufmgr, uint64_t size)
-{
-	drm_intel_bo *bo;
-	uint32_t handle;
-
-	/* XXX gem_create_with_flags(fd, size, I915_CREATE_STOLEN); */
-
-	handle = gem_create(fd, size);
-	bo = gem_handle_to_libdrm_bo(bufmgr, fd, "stolen", handle);
-	gem_close(fd, handle);
-
-	return bo;
-}
-
-static void can_create_stolen(const struct create *create, unsigned count)
-{
-	/* XXX check num_buffers against available stolen */
-	igt_require(0);
-}
-#endif
-
 static void create_cpu_require(const struct create *create, unsigned count)
 {
-#if HAVE_CREATE_STOLEN
-	igt_require(create->create != create_stolen_bo);
-#endif
 }
 
 static drm_intel_bo *
@@ -1807,9 +1781,6 @@ igt_main
 #if HAVE_CREATE_PRIVATE
 		{ "private-", can_create_private, create_private_bo},
 #endif
-#if HAVE_CREATE_STOLEN
-		{ "stolen-", can_create_stolen, create_stolen_bo},
-#endif
 		{ NULL, NULL }
 	};
 	const struct size sizes[] = {
-- 
1.9.1



More information about the Intel-gfx mailing list