From f992bb205c174e0a8e6574258598f5268dd0e0cb Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 3 Aug 2017 11:46:09 -0700 Subject: anv: Rework fences to work more like BO semaphores This commit changes fences to work a bit more like BO semaphores. Instead of the fence being a batch, it's simply a BO that gets added to the validation list for the last execbuf call in the QueueSubmit operation. It's a bit annoying finding the last submit in the execbuf but this allows us to avoid the dummy execbuf. Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/anv_private.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/intel/vulkan/anv_private.h') diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 6b2414429f3..715e0adebfb 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1642,7 +1642,8 @@ VkResult anv_cmd_buffer_execbuf(struct anv_device *device, const VkSemaphore *in_semaphores, uint32_t num_in_semaphores, const VkSemaphore *out_semaphores, - uint32_t num_out_semaphores); + uint32_t num_out_semaphores, + VkFence fence); VkResult anv_cmd_buffer_reset(struct anv_cmd_buffer *cmd_buffer); @@ -1720,8 +1721,6 @@ enum anv_fence_state { struct anv_fence { struct anv_bo bo; - struct drm_i915_gem_execbuffer2 execbuf; - struct drm_i915_gem_exec_object2 exec2_objects[1]; enum anv_fence_state state; }; -- cgit v1.2.3