From: Eric Anholt Date: Fri, 27 Mar 2020 18:31:24 +0000 (-0700) Subject: freedreno: Associate the acc query bo with the batch. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a0783994810fd00e0a6727e902796dc2abe2b41;p=mesa.git 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: --- 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