iris: fix assert

This commit is contained in:
Kenneth Graunke 2018-01-21 20:10:43 -08:00
parent e91289908a
commit fc5ddc64f9
1 changed files with 1 additions and 1 deletions

View 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 =