crocus/query: poll the syncobj in the no wait situation

In the no wait, poll the syncobj and bail if it's hasn't signalled.
This fixes a bunch of deqp xfb tests on sandybridge

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11567>
This commit is contained in:
Dave Airlie 2021-06-18 05:07:26 +10:00 committed by Marge Bot
parent 9ca6abd424
commit c282a082be
1 changed files with 2 additions and 2 deletions

View File

@ -676,8 +676,8 @@ crocus_get_query_result(struct pipe_context *ctx,
}
assert(READ_ONCE(q->map->snapshots_landed));
#else
if (wait)
crocus_wait_syncobj(ctx->screen, q->syncobj, INT64_MAX);
if (crocus_wait_syncobj(ctx->screen, q->syncobj, wait ? INT64_MAX : 0))
return false;
#endif
calculate_result_on_cpu(devinfo, q);
}