igt/gem_exec_alignment: Tweaks count for large alignments

We can fit a few more objects in at high alignment, so do so.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-01-22 15:27:24 +00:00
parent bd9842eade
commit c4bcffcd10

View File

@ -118,8 +118,9 @@ static void many(int fd)
execobj[i].alignment = alignment; execobj[i].alignment = alignment;
if (alignment > max_alignment) { if (alignment > max_alignment) {
uint64_t factor = alignment / max_alignment; uint64_t factor = alignment / max_alignment;
execbuf.buffer_count = count / factor + 1; execbuf.buffer_count = 2*count / factor;
execbuf.buffers_ptr = (uintptr_t)(execobj + (factor - 1) * count / factor); execbuf.buffers_ptr =
(uintptr_t)(execobj + count - execbuf.buffer_count);
} }
igt_debug("testing %lld x alignment=%#llx [%db]\n", igt_debug("testing %lld x alignment=%#llx [%db]\n",