Skip to content

Implement Vulkan emulated_timeline_semaphore to avoid the extension layer #2002

Closed

Description

@benvanik

The extension layer has been nothing but trouble. It seems like it'll be better - especially on Android - to just do it ourselves (given that we have a HAL).

I had an implementation of a timeline fence that should be mostly reusable (replacing VkFence with binary VkSemaphores) - it does the right pooling and timeline advancement:

https://github.com/google/iree/blob/a5bbefb385974c1338f0b73253b4df446c61b3d4/iree/hal/vulkan/legacy_fence.h
https://github.com/google/iree/blob/a5bbefb385974c1338f0b73253b4df446c61b3d4/iree/hal/vulkan/legacy_fence.cc
https://github.com/google/iree/blob/a5bbefb385974c1338f0b73253b4df446c61b3d4/iree/hal/vulkan/vulkan_device.cc

Reviving that code shouldn't be too bad and would at least bring control over all the build/load/deployment issues under our control.

Metadata

Metadata

Assignees

Labels

runtime

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions