summaryrefslogtreecommitdiff
path: root/tests/gem_ringfill.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-07-29 18:46:09 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-07-29 18:46:09 +0200
commit21e9422b01a196dbb6f4c079d352978d81d55f32 (patch)
tree666399dada92649718d4c42d931f2ec9503f1302 /tests/gem_ringfill.c
parent660a7ffdbade6ea0854df881ce316cfc64500826 (diff)
tests/gem_ringfill: add interruptible mode
Should be useful to test intel_ring_begin restart behaviour a bit. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_ringfill.c')
-rw-r--r--tests/gem_ringfill.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/gem_ringfill.c b/tests/gem_ringfill.c
index 5700a74d..750537a9 100644
--- a/tests/gem_ringfill.c
+++ b/tests/gem_ringfill.c
@@ -226,6 +226,23 @@ igt_main
check_ring(bufmgr, batch, "render", copy);
}
+ igt_fork_signal_helper();
+ igt_subtest("blitter-interruptible")
+ check_ring(bufmgr, batch, "blt", blt_copy);
+
+ /* Strictly only required on architectures with a separate BLT ring,
+ * but lets stress everybody.
+ */
+ igt_subtest("render-interruptible") {
+ igt_render_copyfunc_t copy;
+
+ copy = igt_get_render_copyfunc(batch->devid);
+ igt_require(copy);
+
+ check_ring(bufmgr, batch, "render", copy);
+ }
+ igt_stop_signal_helper();
+
igt_fixture {
intel_batchbuffer_free(batch);
drm_intel_bufmgr_destroy(bufmgr);