From: Daniel Vetter Subject: [PATCH] tests/gem_ringfill: add interruptible mode Date: Tue, 29 Jul 2014 18:47:21 +0200 Message-ID: <1406652441-29305-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by gabe.freedesktop.org (Postfix) with ESMTP id 9AC0D6E108 for ; Tue, 29 Jul 2014 11:13:03 -0700 (PDT) Received: by mail-wg0-f48.google.com with SMTP id x13so35744wgg.7 for ; Tue, 29 Jul 2014 11:13:02 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org Should be useful to test intel_ring_begin restart behaviour a bit. Signed-off-by: Daniel Vetter --- tests/gem_ringfill.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/gem_ringfill.c b/tests/gem_ringfill.c index 5700a74d260b..750537a9bbab 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); -- 1.9.3