igt/gem_busy: fix compaction of multiple store commands

Missed increment of the batch offset between commands.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-04-11 12:52:48 +01:00
parent 9e7e7c38a0
commit d6a85f042c

View File

@ -281,6 +281,7 @@ static void store(int fd, unsigned ring, uint32_t flags)
batch[++i] = 0; batch[++i] = 0;
} }
batch[++i] = 0xc0ffee; batch[++i] = 0xc0ffee;
i++;
} }
batch[++i] = MI_BATCH_BUFFER_END; batch[++i] = MI_BATCH_BUFFER_END;
munmap(batch, size); munmap(batch, size);