diff options
Diffstat (limited to 'tests/gem_bad_reloc.c')
-rw-r--r-- | tests/gem_bad_reloc.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/gem_bad_reloc.c b/tests/gem_bad_reloc.c index e8701dab..a9146e27 100644 --- a/tests/gem_bad_reloc.c +++ b/tests/gem_bad_reloc.c @@ -46,16 +46,7 @@ IGT_TEST_DESCRIPTION("Simulates SNA behaviour using negative self-relocations" static uint64_t get_page_table_size(int fd) { - struct drm_i915_getparam gp; - int val = 0; - - memset(&gp, 0, sizeof(gp)); - gp.param = 18; /* HAS_ALIASING_PPGTT */ - gp.value = &val; - - if (drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp)) - return 0; - errno = 0; + int val = gem_gtt_type(fd); switch (val) { case 0: |