anv/device: Add a helper for querying whether a BO is busy
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 5 Apr 2017 16:55:15 +0000 (09:55 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 6 Apr 2017 04:17:11 +0000 (21:17 -0700)
commitf195d40eca49800799d85d110939a125041f4028
treef626e61bf1cad28fddb3a5257ff0d42d035c9b6d
parentd5157ddca4072856e0afce3d7af8929a7d387044
anv/device: Add a helper for querying whether a BO is busy

This is a bit more efficient than using GEM_WAIT with a timeout of 0.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_gem.c
src/intel/vulkan/anv_private.h