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:
parent
9ca6abd424
commit
c282a082be
|
@ -676,8 +676,8 @@ crocus_get_query_result(struct pipe_context *ctx,
|
||||||
}
|
}
|
||||||
assert(READ_ONCE(q->map->snapshots_landed));
|
assert(READ_ONCE(q->map->snapshots_landed));
|
||||||
#else
|
#else
|
||||||
if (wait)
|
if (crocus_wait_syncobj(ctx->screen, q->syncobj, wait ? INT64_MAX : 0))
|
||||||
crocus_wait_syncobj(ctx->screen, q->syncobj, INT64_MAX);
|
return false;
|
||||||
#endif
|
#endif
|
||||||
calculate_result_on_cpu(devinfo, q);
|
calculate_result_on_cpu(devinfo, q);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue