Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use VK external fd extensions (they are core 1.1 spec) #25

Closed
boberfly opened this issue Feb 27, 2019 · 2 comments
Closed

Use VK external fd extensions (they are core 1.1 spec) #25

boberfly opened this issue Feb 27, 2019 · 2 comments

Comments

@boberfly
Copy link
Contributor

Hi all,

I was wondering if it's possible to use these extensions for better syncing between the display's swapchan with the rendering device's images?

https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VK_KHR_external_memory

https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VK_KHR_external_fence

https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VK_KHR_external_semaphore

I'd like to implement this but I am not very adept at the current codebase. After discovering #24 I did notice it was full of hitches.

Cheers

@felixdoerre
Copy link
Owner

felixdoerre commented Mar 1, 2019

As already discussed in #2 the external fd extensions can only be used to share memory between two applications accessing the same device. Exporting memory and importing it to another physical device is not possible with that extensions. It can be seen in this table (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#external-memory-handle-types-compatibility) that the device and driver UUID must match.

As to external fences and semaphores I can not see where additional synchronization is needed in the current source code where those extensions can help.

On my system I don't observe any hitches. All games I tested so far run fluently.

@felixdoerre
Copy link
Owner

I already have #2 open for thought and ideas how to reduce image copy, but at the moment there seems no solution. So I am closing this issue as duplicate of #2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants