freedreno: fix missing locking

Fixes: d0b3ccb060 ("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>
This commit is contained in:
Rob Clark
2020-04-02 12:12:32 -07:00
committed by Marge Bot
parent f8fc690d1c
commit 37e052c8b0
@@ -87,7 +87,9 @@ fd_acc_query_resume(struct fd_acc_query *aq, struct fd_batch *batch)
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