Commit d1697fef authored by Christian Gmeiner's avatar Christian Gmeiner Committed by Marge Bot
Browse files

etnaviv: reset no_wait_cnt after triggered flush


Signed-off-by: Christian Gmeiner's avatarChristian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <mesa/mesa!1530>
parent 23819040
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment