anv: Flush the queue on DeviceWaitIdle
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 11 Dec 2019 04:55:58 +0000 (22:55 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 11 Dec 2019 18:52:08 +0000 (18:52 +0000)
commit98a83d0fcef5580aa4535a325f7aebed09bb6b8e
treefe287e3f14a3da227a94800ce9827ec34e4ae77b
parent0bafde717d01fddf885b36c4f807e00548356fe0
anv: Flush the queue on DeviceWaitIdle

When we have syncobj_wait, we can trust in WAIT_FOR_SUBMIT but when we
don't, we only have BO waits and those aren't quite as nice.  This
commit adds a flag to _anv_queue_submit to wait for the queue to drain
before returning.  This gives us the behavior we need to implement
DeviceWaitIdle.

Fixes: 246261f0add "anv: prepare the driver for delayed submissions"
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_queue.c