diff --git a/src/gallium/drivers/freedreno/freedreno_batch_cache.c b/src/gallium/drivers/freedreno/freedreno_batch_cache.c index 8de5022d0e4..a5231c643aa 100644 --- a/src/gallium/drivers/freedreno/freedreno_batch_cache.c +++ b/src/gallium/drivers/freedreno/freedreno_batch_cache.c @@ -172,8 +172,7 @@ fd_bc_flush(struct fd_context *ctx, bool deferred) assert_dt struct fd_batch *current_batch = fd_context_batch(ctx); for (unsigned i = 0; i < n; i++) { - if (batches[i] && (batches[i]->ctx == ctx) && - (batches[i] != current_batch)) { + if (batches[i] != current_batch) { fd_batch_add_dep(current_batch, batches[i]); } }