mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-07 16:06:25 +00:00
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:
parent
ea3331d120
commit
49b1337881
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user