From: Kenneth Graunke Date: Mon, 22 Jan 2018 04:10:43 +0000 (-0800) Subject: iris: fix assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc5ddc64f90f24a08146af5af87569ead048e6a7;p=mesa.git iris: fix assert --- diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index d99526d8304..41a95a9e37e 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -690,7 +690,7 @@ iris_alloc_state(struct iris_batch *batch, int size, int alignment, uint32_t *out_offset) { - assert(size < batch->cmdbuf.bo->size); + assert(size < batch->statebuf.bo->size); const unsigned existing_bytes = buffer_bytes_used(&batch->statebuf); unsigned aligned_size =