diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-27 11:30:43 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-27 11:44:39 +0000 |
commit | 5f6ebb2cb7c4ddd30e6efbcb896996d00d0016ca (patch) | |
tree | 6aded13d8834d9d78f79ce9ac54fae6dc7b691b6 | |
parent | a64f31b31e7dcaa5c75792ecb0956c7abcaef3dd (diff) |
igt/gem_concurrent_blit: Tighter scoping of buffers variable
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/gem_concurrent_all.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/gem_concurrent_all.c b/tests/gem_concurrent_all.c index e0060b7f..c06cab1b 100644 --- a/tests/gem_concurrent_all.c +++ b/tests/gem_concurrent_all.c @@ -1270,16 +1270,16 @@ run_basic_modes(const char *prefix, { "-hang-render", rcs_hang }, { NULL, NULL }, }, *h; - struct buffers buffers; for (h = hangs; h->suffix; h++) { if (!all && *h->suffix) continue; for (p = all ? pipelines : pskip; p->prefix; p++) { - igt_fixture { + struct buffers buffers; + + igt_fixture batch = buffers_init(&buffers, mode, fd); - } igt_subtest_f("%s-%s-%s-sanitycheck0%s%s", prefix, mode->name, p->prefix, suffix, h->suffix) { p->require(); @@ -1422,9 +1422,8 @@ run_basic_modes(const char *prefix, p->copy, h->hang); } - igt_fixture { + igt_fixture buffers_fini(&buffers); - } } } } |