anv: Use absolute timeouts in wait_for_bo_fences
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 16 Oct 2018 21:59:37 +0000 (16:59 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 27 Oct 2018 21:18:33 +0000 (16:18 -0500)
commit1bd4f8fefc2728963fc37900fe75210ee24e09d1
treea9bfe6de131e4ea6b5d7aac7334667c62c42fb9e
parentcbd44686952b4275d654bcb3555111b412b8c8f4
anv: Use absolute timeouts in wait_for_bo_fences

We were previously using relative timeouts and decrementing the
user-provided timeout as we waited.  Instead, this commit refactors
things to use absolute timeouts throughout.  This should fix a subtle
bug in the waitAll case where we aren't decrementing the timeout after a
successful GPU wait.  Since pthread_cond_timedwait already takes an
absolute timeout, it's also significantly simpler.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_queue.c