summaryrefslogtreecommitdiff
path: root/tests/gem_ppgtt.c
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2017-03-21 17:57:04 +0100
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2017-03-21 18:01:13 +0100
commit25fbae15262cf570e207e62f50e7c5233e06bc67 (patch)
tree56c91c2dbf6b5a205a7ad9cc7a098c00dae82e84 /tests/gem_ppgtt.c
parent7be509c411db2b35f6593e41222b0ad4c0e764e0 (diff)
Revert "lib: Open debugfs files for the given DRM device"
This reverts commit 301ad44cdf1b868b1ab89096721da91fa8541fdc. When a render-only device is opened and gem_quiescent_gpu is called, we need to use the debugfs dir for the master device instead. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Diffstat (limited to 'tests/gem_ppgtt.c')
-rw-r--r--tests/gem_ppgtt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/gem_ppgtt.c b/tests/gem_ppgtt.c
index 37d601ce..a64d6d4f 100644
--- a/tests/gem_ppgtt.c
+++ b/tests/gem_ppgtt.c
@@ -236,7 +236,7 @@ static void flink_and_close(void)
gem_sync(fd2, flinked_bo);
gem_close(fd2, flinked_bo);
- igt_drop_caches_set(fd, DROP_RETIRE);
+ igt_drop_caches_set(DROP_RETIRE);
/* the flinked bo VMA should have been cleared now, so a new bo of the
* same size should get the same offset
@@ -269,12 +269,12 @@ static void flink_and_exit(void)
flinked_bo = gem_open(fd2, name);
/* Verify VMA is not there yet. */
- igt_assert(!igt_debugfs_search(fd, "i915_gem_gtt", match));
+ igt_assert(!igt_debugfs_search("i915_gem_gtt", match));
exec_and_get_offset(fd2, flinked_bo);
/* Verify VMA has been created. */
- igt_assert(igt_debugfs_search(fd, "i915_gem_gtt", match));
+ igt_assert(igt_debugfs_search("i915_gem_gtt", match));
/* Close the context. */
close(fd2);
@@ -286,8 +286,8 @@ static void flink_and_exit(void)
exec_and_get_offset(fd3, gem_create(fd3, 4096));
close(fd3);
- igt_drop_caches_set(fd, DROP_ACTIVE | DROP_RETIRE);
- igt_assert(!igt_debugfs_search(fd, "i915_gem_gtt", match));
+ igt_drop_caches_set(DROP_ACTIVE | DROP_RETIRE);
+ igt_assert(!igt_debugfs_search("i915_gem_gtt", match));
close(fd);
}