etnaviv: reset no_wait_cnt after triggered flush

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1530>
This commit is contained in:
Christian Gmeiner 2019-07-26 12:32:40 +02:00 committed by Marge Bot
parent 2381904030
commit d1697fef1a
1 changed files with 4 additions and 1 deletions

View File

@ -177,8 +177,11 @@ etna_acc_get_query_result(struct etna_context *ctx, struct etna_query *q,
* wait to flush unnecessarily but we also don't want to
* spin forever.
*/
if (aq->no_wait_cnt++ > 5)
if (aq->no_wait_cnt++ > 5) {
ctx->base.flush(&ctx->base, NULL, 0);
aq->no_wait_cnt = 0;
}
return false;
}