diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-08 11:51:56 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-19 14:03:15 +0000 |
commit | 571b876544933c4c6cab16065b1ade76246a7f55 (patch) | |
tree | b39aee8b9656c3a33648f2f7a5f42cc123c7a804 /tests | |
parent | 1c61c0f75097983d1a19e03e2c6dfd631307d1ef (diff) |
gem_concurrent_all: Add a "quick" tiny pass
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_concurrent_all.c | 11 |
1 files changed, 10 insertions, 1 deletions
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; } |