mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-19 05:46:25 +00:00
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:
parent
89f81e0396
commit
d63e72f0ad
@ -124,12 +124,12 @@ static void run_on_ring(int fd, unsigned ring_id, const char *ring_name)
|
|||||||
execobj.flags = EXEC_OBJECT_PINNED;
|
execobj.flags = EXEC_OBJECT_PINNED;
|
||||||
|
|
||||||
sprintf(buf, "Testing %s cs tlb coherency: ", ring_name);
|
sprintf(buf, "Testing %s cs tlb coherency: ", ring_name);
|
||||||
for (i = 0; i < BATCH_SIZE/8; i++) {
|
for (i = 0; i < BATCH_SIZE/64; i++) {
|
||||||
igt_progress(buf, i, BATCH_SIZE/8);
|
igt_progress(buf, i, BATCH_SIZE/64);
|
||||||
|
|
||||||
execobj.handle = obj[i&1].handle;
|
execobj.handle = obj[i&1].handle;
|
||||||
obj[i&1].batch[i*2] = MI_BATCH_BUFFER_END;
|
obj[i&1].batch[i*64/4] = MI_BATCH_BUFFER_END;
|
||||||
execbuf.batch_start_offset = i*8;
|
execbuf.batch_start_offset = i*64;
|
||||||
|
|
||||||
gem_execbuf(fd, &execbuf);
|
gem_execbuf(fd, &execbuf);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user