From d918c09975e2ee349e3a8398709bcac5165f341f Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 20 Nov 2018 08:48:34 -0800 Subject: iris: flush the compute batch too if border pool is redone --- src/gallium/drivers/iris/iris_border_color.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers') 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); } -- cgit v1.2.3