From ffcd84f55a1cf724d4858dee7f6904aac4ac3955 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 30 Jan 2018 17:18:17 -0800 Subject: [PATCH] iris: catastrophic state pointer mistake --- 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 9d6b1715ea1..ff005bb7d5f 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -725,7 +725,7 @@ iris_alloc_state(struct iris_batch *batch, batch->statebuf.map_next += aligned_size; *out_offset = offset; - return batch->statebuf.map_next; + return batch->statebuf.map + offset; } uint32_t -- 2.30.2