From 4a0783994810fd00e0a6727e902796dc2abe2b41 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 27 Mar 2020 11:31:24 -0700 Subject: [PATCH] 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: --- src/gallium/drivers/freedreno/freedreno_query_acc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/freedreno/freedreno_query_acc.c b/src/gallium/drivers/freedreno/freedreno_query_acc.c index 5e4354bd0e7..3bcf9ac964e 100644 --- a/src/gallium/drivers/freedreno/freedreno_query_acc.c +++ b/src/gallium/drivers/freedreno/freedreno_query_acc.c @@ -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 -- 2.30.2