igt/gem_exec_nop: Use common array of rings

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-01-27 14:17:53 +00:00
parent b09ef449af
commit 7e0853c9c7

View File

@ -82,6 +82,7 @@ static void loop(int fd, uint32_t handle, unsigned ring_id, const char *ring_nam
igt_main
{
const struct intel_execution_engine *e;
uint32_t handle = 0;
igt_fixture {
@ -90,17 +91,9 @@ igt_main
gem_write(device, handle, 0, batch, sizeof(batch));
}
igt_subtest("render")
loop(device, handle, I915_EXEC_RENDER, "render");
igt_subtest("bsd")
loop(device, handle, I915_EXEC_BSD, "bsd");
igt_subtest("blt")
loop(device, handle, I915_EXEC_BLT, "blt");
igt_subtest("vebox")
loop(device, handle, LOCAL_I915_EXEC_VEBOX, "vebox");
for (e = intel_execution_engines; e->name; e++)
igt_subtest_f("%s", e->name)
loop(device, handle, e->exec_id | e->flags, e->name);
igt_fixture {
gem_close(device, handle);