From: Kenneth Graunke Date: Fri, 22 Mar 2019 16:29:40 +0000 (-0700) Subject: iris: Fix batch chaining map_next increment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87f865aab3c08e862938e8f3a8f774e2ee49da7d;p=mesa.git iris: Fix batch chaining map_next increment. Caught by Chris Wilson; split out from his valgrind patch. --- 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);