From 87f865aab3c08e862938e8f3a8f774e2ee49da7d Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 22 Mar 2019 09:29:40 -0700 Subject: [PATCH] iris: Fix batch chaining map_next increment. Caught by Chris Wilson; split out from his valgrind patch. --- src/gallium/drivers/iris/iris_batch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index f2b7ef697a9..ce6fa99b1ad 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -410,7 +410,7 @@ iris_chain_to_new_batch(struct iris_batch *batch) uint32_t *cmd = batch->map_next; uint64_t *addr = batch->map_next + 4; - batch->map_next += 8; + batch->map_next += 12; /* No longer held by batch->bo, still held by validation list */ iris_bo_unreference(batch->bo); -- 2.30.2