igt/gem_exec_alignment: Actually check aligned locations after many

As well as ensuring the kernel doesn't simply crash when asked to do
lots of objects, check it actually aligns them.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-01-26 08:54:46 +00:00
parent ea3331d120
commit 49b1337881

View File

@ -128,8 +128,10 @@ static void many(int fd)
(long long)alignment,
find_last_bit(alignment)-1);
gem_execbuf(fd, &execbuf);
for (i = 0; i < count; i++)
for(i = count - execbuf.buffer_count; i < count; i++) {
igt_assert_eq_u64(execobj[i].alignment, alignment);
igt_assert_eq_u64(execobj[i].offset % alignment, 0);
}
}
for (i = 0; i < count; i++)