freedreno: Remove assert

In multi-context scenarios, one context writing to a resource can race
with a pctx->flush_resource() on another context/thread.  Which means
that by the end of flush_resource() we can have a new write_batch.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11200>
This commit is contained in:
Rob Clark 2021-06-09 10:42:53 -07:00
parent cbb5280a00
commit 38dd2e6e41

View file

@ -667,8 +667,6 @@ flush_resource(struct fd_context *ctx, struct fd_resource *rsc,
}
fd_batch_reference(&write_batch, NULL);
assert(!rsc->track->write_batch);
}
static void