diff --git a/src/gallium/drivers/freedreno/freedreno_batch_cache.c b/src/gallium/drivers/freedreno/freedreno_batch_cache.c index b3a6041eead..07dc1a93f07 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch_cache.c +++ b/src/gallium/drivers/freedreno/freedreno_batch_cache.c @@ -187,7 +187,7 @@ fd_bc_invalidate_context(struct fd_context *ctx) foreach_batch(batch, cache, cache->batch_mask) { if (batch->ctx == ctx) - fd_batch_reference_locked(&batch, NULL); + fd_bc_invalidate_batch(batch, true); } mtx_unlock(&ctx->screen->lock);