Skip to content

Conversation

sumirjha
Copy link

@sumirjha sumirjha commented Oct 7, 2025

Vulkan Buffer or Image exported via VK_KHR_external_memory_fd extension can be imported into OpenGL context and create a opengl texture to be used by renderer to draw stuff.

Vulkan Buffer, Image exported via VK_KHR_external_memory_fd extension
can be imported into OpenGL context and create a opengl texture to
be used by renderer to draw stuff.
@Drakulix
Copy link
Member

Drakulix commented Oct 7, 2025

Why not simply export it as a dmabuf and import that into OpenGL?

@sumirjha
Copy link
Author

sumirjha commented Oct 7, 2025

Why not simply export it as a dmabuf and import that into OpenGL?

That's a good idea, I tried but didn't work for me.

I exported dma_fd from vulkan and imported into gl context with DmaBuf builder, add_plane stuff but it failed to work for me.

@Drakulix
Copy link
Member

Drakulix commented Oct 7, 2025

Why not simply export it as a dmabuf and import that into OpenGL?

That's a good idea, I tried but didn't work for me.

I exported dma_fd from vulkan and imported into gl context with DmaBuf builder, add_plane stuff but it failed to work for me.

What do you mean with "it didn't work"? What kinda error did you get?

@sumirjha
Copy link
Author

sumirjha commented Oct 8, 2025

It was long ago, so couldn't capture the error and quickly moved on with opaque fd approach. I am converting my PR into draft for time being until i retry again with dma approach..

@sumirjha sumirjha marked this pull request as draft October 8, 2025 10:41
@sumirjha
Copy link
Author

sumirjha commented Oct 8, 2025

Apparently, I can't convert it to draft.

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

Successfully merging this pull request may close these issues.

2 participants