diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-26 08:54:46 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-26 09:18:59 +0000 |
commit | 49b13378812df0b53a77df733e24b4a29ca8650e (patch) | |
tree | 44cf4a88b9bb652cc887e2fc2cf7ed2e173b603d /tests/gem_exec_alignment.c | |
parent | ea3331d1201fa04904d87698055b84fa29f23869 (diff) |
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>
Diffstat (limited to 'tests/gem_exec_alignment.c')
-rw-r--r-- | tests/gem_exec_alignment.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gem_exec_alignment.c b/tests/gem_exec_alignment.c index 3f0f7ffc..1a9596d1 100644 --- a/tests/gem_exec_alignment.c +++ b/tests/gem_exec_alignment.c @@ -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++) |