Skip to content
  • Yiwei Zhang's avatar
    vulkan/android: improve vkQueueSignalReleaseImageANDROID · 3c4c263d
    Yiwei Zhang authored and Marge Bot's avatar Marge Bot committed
    
    
    There're two issues with the current implementation:
    1. Wait semaphores are implicitly required to be SYNC_FD exportable
    2. As a queue command that can further record cmds against the wsi
       image, it currently doesn't account for pending cmds in the queue
       beyond the wait semaphores.
    
    This change fixes both by doing a queue submission in the call with a
    SYNC_FD external signal semaphore. However, due to Android wsi not
    exposing swapchain to icd, we have to cache the signal semaphore in the
    queue, otherwise would have to create/destroy in each present.
    
    Signed-off-by: default avatarYiwei Zhang <zzyiwei@chromium.org>
    Reviewed-by: default avatarChia-I Wu <olvaffe@gmail.com>
    Part-of: <!25185>
    3c4c263d