From fc5ddc64f90f24a08146af5af87569ead048e6a7 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 21 Jan 2018 20:10:43 -0800 Subject: [PATCH] iris: fix assert --- 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 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 = -- 2.30.2