From 571b876544933c4c6cab16065b1ade76246a7f55 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 8 Jan 2016 11:51:56 +0000 Subject: [PATCH] gem_concurrent_all: Add a "quick" tiny pass Signed-off-by: Chris Wilson --- tests/gem_concurrent_all.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/gem_concurrent_all.c b/tests/gem_concurrent_all.c index e333d443..6466aa60 100644 --- a/tests/gem_concurrent_all.c +++ b/tests/gem_concurrent_all.c @@ -58,6 +58,8 @@ struct intel_batchbuffer *batch; int all; int pass; +#define MIN_BUFFERS 3 + static void nop_release_bo(drm_intel_bo *bo) { @@ -1059,7 +1061,7 @@ static void __run_forked(struct buffers *buffers, const int old_num_buffers = num_buffers; num_buffers /= num_children; - num_buffers += 2; + num_buffers += MIN_BUFFERS; igt_fork(child, num_children) { /* recreate process local variables */ @@ -1405,6 +1407,13 @@ igt_main create_func = c->create; + num_buffers = MIN_BUFFERS; + if (c->require()) { + snprintf(name, sizeof(name), "%s%s", c->name, "tiny"); + for (i = 0; i < ARRAY_SIZE(access_modes); i++) + run_modes(name, &access_modes[i], CHECK_RAM); + } + igt_fixture { num_buffers = gem_mappable_aperture_size() / (1024 * 1024) / 4; }