mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-08 08:26:10 +00:00
igt/gem_concurrent_blit: Tighter scoping of buffers variable
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
a64f31b31e
commit
5f6ebb2cb7
@ -1270,16 +1270,16 @@ run_basic_modes(const char *prefix,
|
|||||||
{ "-hang-render", rcs_hang },
|
{ "-hang-render", rcs_hang },
|
||||||
{ NULL, NULL },
|
{ NULL, NULL },
|
||||||
}, *h;
|
}, *h;
|
||||||
struct buffers buffers;
|
|
||||||
|
|
||||||
for (h = hangs; h->suffix; h++) {
|
for (h = hangs; h->suffix; h++) {
|
||||||
if (!all && *h->suffix)
|
if (!all && *h->suffix)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (p = all ? pipelines : pskip; p->prefix; p++) {
|
for (p = all ? pipelines : pskip; p->prefix; p++) {
|
||||||
igt_fixture {
|
struct buffers buffers;
|
||||||
|
|
||||||
|
igt_fixture
|
||||||
batch = buffers_init(&buffers, mode, fd);
|
batch = buffers_init(&buffers, mode, fd);
|
||||||
}
|
|
||||||
|
|
||||||
igt_subtest_f("%s-%s-%s-sanitycheck0%s%s", prefix, mode->name, p->prefix, suffix, h->suffix) {
|
igt_subtest_f("%s-%s-%s-sanitycheck0%s%s", prefix, mode->name, p->prefix, suffix, h->suffix) {
|
||||||
p->require();
|
p->require();
|
||||||
@ -1422,9 +1422,8 @@ run_basic_modes(const char *prefix,
|
|||||||
p->copy, h->hang);
|
p->copy, h->hang);
|
||||||
}
|
}
|
||||||
|
|
||||||
igt_fixture {
|
igt_fixture
|
||||||
buffers_fini(&buffers);
|
buffers_fini(&buffers);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user