Module: Mesa
Branch: master
Commit: 4a0783994810fd00e0a6727e902796dc2abe2b41
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a0783994810fd00e0a6727e902796dc2abe2b41

Author: Eric Anholt <[email protected]>
Date:   Fri Mar 27 11:31:24 2020 -0700

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>

---

 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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to