igt/gem_cs_tlb: Increase BB start alignment to 64bytes

Ironlake requires 64byte alignment for its MI_BATCH_BUFFER_START.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-01-28 17:02:11 +00:00
parent 89f81e0396
commit d63e72f0ad

View File

@ -124,12 +124,12 @@ static void run_on_ring(int fd, unsigned ring_id, const char *ring_name)
execobj.flags = EXEC_OBJECT_PINNED;
sprintf(buf, "Testing %s cs tlb coherency: ", ring_name);
for (i = 0; i < BATCH_SIZE/8; i++) {
igt_progress(buf, i, BATCH_SIZE/8);
for (i = 0; i < BATCH_SIZE/64; i++) {
igt_progress(buf, i, BATCH_SIZE/64);
execobj.handle = obj[i&1].handle;
obj[i&1].batch[i*2] = MI_BATCH_BUFFER_END;
execbuf.batch_start_offset = i*8;
obj[i&1].batch[i*64/4] = MI_BATCH_BUFFER_END;
execbuf.batch_start_offset = i*64;
gem_execbuf(fd, &execbuf);
}