anv: support fd==-1 in ImportSemaphoreFdKHR
authorRicardo Quesada <ricardoq@google.com>
Thu, 2 Jul 2020 13:46:11 +0000 (06:46 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 Aug 2020 13:53:53 +0000 (13:53 +0000)
commitb243a74768ed86410b27617f81880b24a84eda89
tree72e47700ea0340b1d515486bd311a918a98b1f28
parentf15315173032714b1cc4c1820e50b95ae29dd88c
anv: support fd==-1 in ImportSemaphoreFdKHR

If fd==-1 is passed in ImportSemaphoreFdKHR, instead of importing the
fd, in creates an already signaled syncobj.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6427>
src/intel/vulkan/anv_queue.c