llvmpipe: correctly handle waiting in llvmpipe_fence_finish
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 25 Apr 2019 17:42:03 +0000 (18:42 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 26 Apr 2019 10:26:33 +0000 (11:26 +0100)
commit591955d82d8d9fd752b900b9bdc0c17085d55560
treeb2db4b8530887a6e970732fc818fce4b1986fb8c
parent5b284fe6bc0a2a5c2d9e5da09a5b86ff8912e474
llvmpipe: correctly handle waiting in llvmpipe_fence_finish

Currently if the timeout differs from 0, we'll end up with infinite
wait... even if the user is perfectly clear they don't want that.

Use the new lp_fence_timedwait() helper guarding both waits in an
!lp_fence_signalled block like the rest of llvmpipe.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_screen.c