From: Kenneth Graunke Date: Tue, 20 Nov 2018 16:48:34 +0000 (-0800) Subject: iris: flush the compute batch too if border pool is redone X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d918c09975e2ee349e3a8398709bcac5165f341f;p=mesa.git iris: flush the compute batch too if border pool is redone --- diff --git a/src/gallium/drivers/iris/iris_border_color.c b/src/gallium/drivers/iris/iris_border_color.c index bca665451a3..753513b94d2 100644 --- a/src/gallium/drivers/iris/iris_border_color.c +++ b/src/gallium/drivers/iris/iris_border_color.c @@ -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); }