We can rely on only one kind of synchronization object (drm-syncobj) when it is available. This reduces the number of file descriptors we use in our implementation.
This will be required later for timeline semaphores implementation, at this point we won't ever want to use anything else but syncobjs.
v2: Only use has_syncobj for semaphores (Jason)
v3: Only has_syncobj in assert on semaphores in QueueSubmit (Jason)
4a61be24fee anv: only resort to sync fds internally with no syncobj support
src/intel/vulkan/anv_batch_chain.c | 8 +++++++
src/intel/vulkan/anv_queue.c | 45 +++++++++++++++++++++++++++++++-------
2 files changed, 45 insertions(+), 8 deletions(-)