diff --git a/src/gallium/frontends/lavapipe/lvp_android.c b/src/gallium/frontends/lavapipe/lvp_android.c index 1851e18930f..4efcd4bb81f 100644 --- a/src/gallium/frontends/lavapipe/lvp_android.c +++ b/src/gallium/frontends/lavapipe/lvp_android.c @@ -30,12 +30,6 @@ #include -#include "util/libsync.h" -#include "util/os_file.h" -#include "util/libsync.h" - -#include "vk_fence.h" -#include "vk_semaphore.h" #include "vk_android.h" #include "lvp_private.h" @@ -67,54 +61,6 @@ lvp_GetSwapchainGrallocUsage2ANDROID(VkDevice device_h, } #endif -VKAPI_ATTR VkResult VKAPI_CALL -lvp_AcquireImageANDROID(VkDevice _device, - VkImage image, - int nativeFenceFd, - VkSemaphore semaphore, - VkFence fence) -{ - VK_FROM_HANDLE(vk_device, vk_device, _device); - VkResult result = VK_SUCCESS; - - if(nativeFenceFd >= 0) - { - sync_wait(nativeFenceFd, -1); - close(nativeFenceFd); - } - - if(fence != VK_NULL_HANDLE) - { - VK_FROM_HANDLE(vk_fence, vk_fence, fence); - result = vk_sync_signal(vk_device, &vk_fence->permanent, 0); - } - - if(result == VK_SUCCESS && semaphore != VK_NULL_HANDLE) - { - VK_FROM_HANDLE(vk_semaphore, vk_semaphore, semaphore); - result = vk_sync_signal(vk_device, &vk_semaphore->permanent, 0); - } - - return result; -} - -VKAPI_ATTR VkResult VKAPI_CALL -lvp_QueueSignalReleaseImageANDROID(VkQueue _queue, - uint32_t waitSemaphoreCount, - const VkSemaphore *pWaitSemaphores, - VkImage image, - int *pNativeFenceFd) -{ - VK_FROM_HANDLE(vk_queue, queue, _queue); - struct vk_device *device = queue->base.device; - - device->dispatch_table.QueueWaitIdle(_queue); - - *pNativeFenceFd = -1; - - return VK_SUCCESS; -} - VkResult lvp_import_ahb_memory(struct lvp_device *device, const VkMemoryAllocateInfo *alloc_info,