anv,wsi: simplify WSI synchronization
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 15 Dec 2021 09:52:44 +0000 (11:52 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Dec 2021 00:55:31 +0000 (00:55 +0000)
commitb00086d393f3618c36674bfb78113148e71a902a
tree0669d60280aad244dbcbe5a21dc8093ac05570a1
parent9ae1e621e56fb845b7195f7bd5fb84f52ebff688
anv,wsi: simplify WSI synchronization

Rather than using 2 vfuncs, use one since we've unified the
synchronization framework in the runtime with a single vk_sync object.

v2 (Jason Ekstrand):
 - create_sync_for_memory is now in vk_device

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14237>
src/intel/vulkan/anv_wsi.c
src/vulkan/wsi/wsi_common.c
src/vulkan/wsi/wsi_common.h