iris: flush the compute batch too if border pool is redone
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 20 Nov 2018 16:48:34 +0000 (08:48 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_border_color.c

index bca665451a30bcf479ab2907e96a44d6eede2e80..753513b94d26a2a420afa63cd675c36360a14e0d 100644 (file)
@@ -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);
    }