From d6a85f042cf0ac7f297189ef48f85caf972515a9 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 11 Apr 2016 12:52:48 +0100 Subject: [PATCH] igt/gem_busy: fix compaction of multiple store commands Missed increment of the batch offset between commands. Signed-off-by: Chris Wilson --- tests/gem_busy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gem_busy.c b/tests/gem_busy.c index 103a66e9..372eb451 100644 --- a/tests/gem_busy.c +++ b/tests/gem_busy.c @@ -281,6 +281,7 @@ static void store(int fd, unsigned ring, uint32_t flags) batch[++i] = 0; } batch[++i] = 0xc0ffee; + i++; } batch[++i] = MI_BATCH_BUFFER_END; munmap(batch, size);