iris: catastrophic state pointer mistake

This commit is contained in:
Kenneth Graunke
2018-01-30 17:18:17 -08:00
parent 1739dc0d5e
commit ffcd84f55a

View 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