[Mesa-dev] [PATCH] mesa: don't wait in _mesa_ClientWaitSync if timeout is 0
Kenneth Graunke
kenneth at whitecape.org
Fri Aug 31 16:55:26 PDT 2012
On 08/31/2012 01:37 PM, Vadim Girlin wrote:
> From ARB_sync spec:
>
> If the value of <timeout> is zero, then ClientWaitSync does not
> block, but simply tests the current state of <sync>. TIMEOUT_EXPIRED
> will be returned in this case if <sync> is not signaled, even though
> no actual wait was performed.
>
> Fixes random fails of the arb_sync-timeout-zero piglit test on r600g.
>
> Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
> ---
> src/mesa/main/syncobj.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
Hooray! I kept meaning to look into this, but never got to it. Thanks
for fixing it.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
More information about the mesa-dev
mailing list