iris: fix assert
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 22 Jan 2018 04:10:43 +0000 (20:10 -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 d99526d8304ac8d101caf4331631ab2704862ce6..41a95a9e37e2c94a35ec15668fcef5a4cbbb8927 100644 (file)
@@ -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 =