asahi: sync with query mismatches

otherwise the following assertion can fail. fixes crash in yuzu trace.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
Alyssa Rosenzweig 2024-01-16 14:48:33 -04:00 committed by Marge Bot
parent 3b927567ac
commit 19da2f6d30

View file

@ -316,8 +316,8 @@ agx_add_query_to_batch(struct agx_batch *batch, struct agx_query *query,
* could avoid this flush by merging query results.
*/
if (query->writer && query->writer != batch) {
agx_flush_batch_for_reason(batch->ctx, query->writer,
"Multiple query writers");
agx_sync_batch_for_reason(batch->ctx, query->writer,
"Multiple query writers");
}
/* Allocate if needed */