freedreno: Associate the acc query bo with the batch.

Otherwise, a result query with wait won't trigger flushing the batch, and
we can end up with zeroed results.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4356>
This commit is contained in:
Eric Anholt 2020-03-27 11:31:24 -07:00 committed by Marge Bot
parent 36612c96bd
commit 4a07839948

View file

@ -93,6 +93,8 @@ fd_acc_query_resume(struct fd_acc_query *aq, struct fd_batch *batch)
aq->batch = batch;
p->resume(aq, aq->batch);
fd_batch_resource_used(batch, fd_resource(aq->prsc), true);
}
static void