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 <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23557>
* 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);
}
}