mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 00:16:18 +00:00
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:
parent
38fe49d9a8
commit
9cc2b1336b
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user