From: Lucas Stach Date: Fri, 9 Jun 2023 17:09:21 +0000 (+0200) Subject: etnaviv: query: optimize context flushes X-Git-Tag: upstream/23.3.3~7204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e7d434b8cdcba0d7aaadcaa2686a01e4e768eba;p=platform%2Fupstream%2Fmesa.git etnaviv: query: optimize context flushes Same as the transfer flushes, the flushes caused by waiting for a query result don't need to realize context external visibility of resource changes and can thus be a bit more lightweight. Signed-off-by: Lucas Stach Reviewed-by: Christian Gmeiner Part-of: --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_query_acc.c b/src/gallium/drivers/etnaviv/etnaviv_query_acc.c index 3b01bfb..9578cb7 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_query_acc.c +++ b/src/gallium/drivers/etnaviv/etnaviv_query_acc.c @@ -125,14 +125,14 @@ etna_acc_get_query_result(struct etna_context *ctx, struct etna_query *q, * spin forever. */ if (aq->no_wait_cnt++ > 5) { - ctx->base.flush(&ctx->base, NULL, 0); + etna_flush(&ctx->base, NULL, 0, true); aq->no_wait_cnt = 0; } return false; } else { /* flush that GPU executes all query related actions */ - ctx->base.flush(&ctx->base, NULL, 0); + etna_flush(&ctx->base, NULL, 0, true); } }