iris: catastrophic state pointer mistake
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 31 Jan 2018 01:18:17 +0000 (17:18 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:05 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_batch.c

index 9d6b1715ea108f22e1b73117062c8ea4f29eec91..ff005bb7d5f86b6f436de0fa99478cfced091865 100644 (file)
@@ -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