igt/gem_ctx_exec: Convert from stop-rings to a real GPU hang/reset

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-12-11 13:40:11 +00:00
parent 38fe49d9a8
commit 9cc2b1336b

View File

@ -201,10 +201,10 @@ igt_main
* the last context is leaked at every reset. * the last context is leaked at every reset.
*/ */
for (i = 0; i < 20; i++) { 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, 0) == 0);
igt_assert(exec(fd, handle, I915_EXEC_RENDER, ctx_id) == 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); gem_context_destroy(fd, ctx_id);