iris: Fix batch chaining map_next increment.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Mar 2019 16:29:40 +0000 (09:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Mar 2019 16:31:15 +0000 (09:31 -0700)
Caught by Chris Wilson; split out from his valgrind patch.

src/gallium/drivers/iris/iris_batch.c

index f2b7ef697a9a714d818a84db77260b5eaa7923a3..ce6fa99b1ad81019cf046b186d5a600010db8ac0 100644 (file)
@@ -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);