summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-12-11 13:40:11 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-02-04 11:22:00 +0000
commit9cc2b1336b60392b834e099ce3a3eb8ea723e29a (patch)
tree0e395f64942a51115087306185b40740ca2b2ab9
parent38fe49d9a80a45ca529adaf8bbbba63e271ad30d (diff)
igt/gem_ctx_exec: Convert from stop-rings to a real GPU hang/reset
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tests/gem_ctx_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_ctx_exec.c b/tests/gem_ctx_exec.c
index 179e9912..0ba10bd6 100644
--- a/tests/gem_ctx_exec.c
+++ b/tests/gem_ctx_exec.c
@@ -201,10 +201,10 @@ igt_main
* the last context is leaked at every reset.
*/
for (i = 0; i < 20; i++) {
- igt_set_stop_rings(igt_to_stop_ring_flag(I915_EXEC_RENDER));
+ igt_hang_ring_t hang = igt_hang_ring(fd, I915_EXEC_RENDER);
igt_assert(exec(fd, handle, I915_EXEC_RENDER, 0) == 0);
igt_assert(exec(fd, handle, I915_EXEC_RENDER, ctx_id) == 0);
- gem_sync(fd, handle);
+ igt_post_hang_ring(fd, hang);
}
gem_context_destroy(fd, ctx_id);