iris: flush the compute batch too if border pool is redone

This commit is contained in:
Kenneth Graunke
2018-11-20 08:48:34 -08:00
parent 017b556609
commit d918c09975
@@ -108,6 +108,8 @@ iris_border_color_pool_reserve(struct iris_context *ice, unsigned count)
/* It's safe to flush because we're called outside of state upload. */
if (iris_batch_references(&ice->render_batch, pool->bo))
iris_batch_flush(&ice->render_batch);
if (iris_batch_references(&ice->compute_batch, pool->bo))
iris_batch_flush(&ice->compute_batch);
iris_reset_border_color_pool(pool, pool->bo->bufmgr);
}