Skip to contentSkip to conversation

tests/gem_exec_parse: use gem_uses_aliasing_ppgtt

PATCH New Daniel Vetter 1 participant 1 message Jul 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/gem_exec_parse: use gem_uses_aliasing_ppgtt

Suggested by Brad Volking.

---
 tests/gem_exec_parse.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
tests/gem_exec_parse.c +2 -5
index f7376e391ee9..5bab4db777b3 100644
@@ -198,7 +198,7 @@ int fd;
 igt_main
 {
 	igt_fixture {
-		int parser_version = 0, has_ppgtt = 0;
+		int parser_version = 0;
                 drm_i915_getparam_t gp;
 		int rc;
 
@@ -209,10 +209,7 @@ igt_main
 		rc = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
 		igt_require(!rc && parser_version > 0);
 
-		gp.param = I915_PARAM_HAS_ALIASING_PPGTT;
-		gp.value = &has_ppgtt;
-		rc = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
-		igt_require(!rc && has_ppgtt > 0);
+		igt_require(gem_uses_aliasing_ppgtt(fd));
 
 		handle = gem_create(fd, 4096);
 
Signature · 1 line
2.0.0