summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-04-11 12:52:48 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-04-11 12:53:30 +0100
commitd6a85f042cf0ac7f297189ef48f85caf972515a9 (patch)
tree62553f3e9dc0f465a5872a0d4774bb43652ad04a
parent9e7e7c38a0fe48a64eb946fd4449283e01039573 (diff)
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>
-rw-r--r--tests/gem_busy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_busy.c b/tests/gem_busy.c
index 103a66e9d87e..372eb4510527 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);