anv: invalidate file descriptor of semaphore sync fd at vkQueueSubmit
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 29 Aug 2019 11:54:12 +0000 (14:54 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 11 Nov 2019 21:46:51 +0000 (21:46 +0000)
commit048f0690ee4b39f865d4d6ad82a6c0290dcaaf41
tree5cbcc15bd73222b33aa4c64da76ab64eace6ab37
parentde998d3eb5822b54aa56d4f18f402e7cddb0e507
anv: invalidate file descriptor of semaphore sync fd at vkQueueSubmit

We always close the in_fence at the end the anv_cmd_buffer_execbuf()
so when we take it from the semaphore, let's not forget to invalidate
it.

Note that the code leaks the fence_in if we get any error before
reaching the close(). Let's fix that in another patch or better,
rewrite the whole thing!

v2: drop redundant fd = -1 (Jason)

v3: Update commit message (Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_batch_chain.c