summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-01-21 20:10:43 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:05 -0800
commitfc5ddc64f90f24a08146af5af87569ead048e6a7 (patch)
tree685eadb0bb76ed649cbe091b13bff9e00f96cba1 /src/gallium
parente91289908ac5d787ef0aad5cccdb52017f0cb929 (diff)
iris: fix assert
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/iris/iris_batch.c2
1 files changed, 1 insertions, 1 deletions
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 =