From: Kenneth Graunke Date: Wed, 31 Jan 2018 01:18:17 +0000 (-0800) Subject: iris: catastrophic state pointer mistake X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffcd84f55a1cf724d4858dee7f6904aac4ac3955;p=mesa.git iris: catastrophic state pointer mistake --- 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