diff options
author | Christian Gmeiner <[email protected]> | 2019-07-26 12:32:40 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-05 18:01:43 +0000 |
commit | d1697fef1a92c9be74ff7447e1e16a9e8e4314f1 (patch) | |
tree | d2730d516c95540bbc800b5d40ae75628725a0f0 /src | |
parent | 238190403068edf4c6a9b761095193a88bea841d (diff) |
etnaviv: reset no_wait_cnt after triggered flush
Signed-off-by: Christian Gmeiner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1530>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_query_acc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_query_acc.c b/src/gallium/drivers/etnaviv/etnaviv_query_acc.c index c025ee7144a..a1628534d27 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_query_acc.c +++ b/src/gallium/drivers/etnaviv/etnaviv_query_acc.c @@ -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; } |