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:
parent
2381904030
commit
d1697fef1a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue