anv: Implement vk_device::create_sync_for_memory

Fixes: 36ea90a361 ("anv: Convert to the common sync and submit framework")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14237>
This commit is contained in:
Jason Ekstrand
2021-12-16 14:14:19 -06:00
committed by Marge Bot
parent 2188829d29
commit 9ae1e621e5
3 changed files with 37 additions and 5 deletions

View File

@@ -3176,6 +3176,11 @@ VkResult anv_sync_create_for_bo(struct anv_device *device,
struct anv_bo *bo,
struct vk_sync **sync_out);
VkResult anv_create_sync_for_memory(struct vk_device *device,
VkDeviceMemory memory,
bool signal_memory,
struct vk_sync **sync_out);
struct anv_event {
struct vk_object_base base;
uint64_t semaphore;