Mesa (main): freedreno: Remove assert
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 10 02:36:05 UTC 2021
Module: Mesa
Branch: main
Commit: 38dd2e6e41781ac7f444b1094ea4fbeb95b97f63
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=38dd2e6e41781ac7f444b1094ea4fbeb95b97f63
Author: Rob Clark <robdclark at chromium.org>
Date: Wed Jun 9 10:42:53 2021 -0700
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 at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11200>
---
src/gallium/drivers/freedreno/freedreno_resource.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c
index 398604cbb80..39766630029 100644
--- a/src/gallium/drivers/freedreno/freedreno_resource.c
+++ b/src/gallium/drivers/freedreno/freedreno_resource.c
@@ -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
More information about the mesa-commit
mailing list