diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-28 17:02:11 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-28 17:03:21 +0000 |
commit | d63e72f0ad281f295b058a572741b995a5a0f64a (patch) | |
tree | c0e12c4f90f7656e06634959e837672a047bf9aa /tests/gem_cs_tlb.c | |
parent | 89f81e039636c1fe8a4df846c769bbab7de609dc (diff) |
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>
Diffstat (limited to 'tests/gem_cs_tlb.c')
-rw-r--r-- | tests/gem_cs_tlb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/gem_cs_tlb.c b/tests/gem_cs_tlb.c index bb507d82..0e629926 100644 --- a/tests/gem_cs_tlb.c +++ b/tests/gem_cs_tlb.c @@ -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); } |