commit | 37e052c8b0882904d80ab1721ccb1ebed727af9f | [log] [tgz] |
---|---|---|
author | Rob Clark <robdclark@chromium.org> | Thu Apr 02 12:12:32 2020 -0700 |
committer | Marge Bot <eric+marge@anholt.net> | Sat Apr 04 00:07:10 2020 +0000 |
tree | 9bdf80f737f43ee762e309ecad11858fbb327a83 | |
parent | f8fc690d1c2720d36893daf9beb95ec60e64a34a [diff] |
freedreno: fix missing locking Fixes: d0b3ccb0607 ("freedreno: Fix detection of being in a blit for acc queries.") Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4423>
diff --git a/src/gallium/drivers/freedreno/freedreno_query_acc.c b/src/gallium/drivers/freedreno/freedreno_query_acc.c index 46efe61..5bc10bc 100644 --- a/src/gallium/drivers/freedreno/freedreno_query_acc.c +++ b/src/gallium/drivers/freedreno/freedreno_query_acc.c
@@ -87,7 +87,9 @@ aq->batch = batch; p->resume(aq, aq->batch); + mtx_lock(&batch->ctx->screen->lock); fd_batch_resource_used(batch, fd_resource(aq->prsc), true); + mtx_unlock(&batch->ctx->screen->lock); } static void