summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2022-01-01 23:06:13 -0600
committerMarge Bot <emma+marge@anholt.net>2022-01-05 16:36:10 +0000
commita9321b130989416e04781497ab8dc600284aa53d (patch)
tree48dfe71e19a048cb1041c912bbfb671256452c59
parentb2073f5e5d689a8458b331b5be9608bf5717cfa4 (diff)
anv: Use the common QueueSignalReleaseImageANDROID from RADV
This is an actual functional change as we now plumb through the sync FD instead of doing a vkQueueSubmit and trusting in implicit sync. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Tested-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14372>
-rw-r--r--src/intel/vulkan/anv_android.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/intel/vulkan/anv_android.c b/src/intel/vulkan/anv_android.c
index dee28182d29..f5b4df95886 100644
--- a/src/intel/vulkan/anv_android.c
+++ b/src/intel/vulkan/anv_android.c
@@ -791,40 +791,3 @@ VkResult anv_GetSwapchainGrallocUsageANDROID(
return setup_gralloc0_usage(device, format, imageUsage, grallocUsage);
}
-
-VkResult
-anv_QueueSignalReleaseImageANDROID(
- VkQueue queue,
- uint32_t waitSemaphoreCount,
- const VkSemaphore* pWaitSemaphores,
- VkImage image,
- int* pNativeFenceFd)
-{
- VkResult result;
-
- if (waitSemaphoreCount == 0)
- goto done;
-
- result = vk_common_QueueSubmit(queue, 1,
- &(VkSubmitInfo) {
- .sType = VK_STRUCTURE_TYPE_SUBMIT_INFO,
- .waitSemaphoreCount = 1,
- .pWaitSemaphores = pWaitSemaphores,
- .pWaitDstStageMask = &(VkPipelineStageFlags) {
- VK_PIPELINE_STAGE_ALL_COMMANDS_BIT
- },
- },
- (VkFence) VK_NULL_HANDLE);
- if (result != VK_SUCCESS)
- return result;
-
- done:
- if (pNativeFenceFd) {
- /* We can rely implicit on sync because above we submitted all
- * semaphores to the queue.
- */
- *pNativeFenceFd = -1;
- }
-
- return VK_SUCCESS;
-}