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

Vulkan WSI wrapping #5

Open
13 tasks
tareksander opened this issue May 24, 2023 · 2 comments
Open
13 tasks

Vulkan WSI wrapping #5

tareksander opened this issue May 24, 2023 · 2 comments

Comments

@tareksander
Copy link
Owner

tareksander commented May 24, 2023

  • Generic Swapchain implementation
    • regular Vulkan memory buffers if HardwareBuffers aren't available
    • HardwareBuffer-backed VKImages if possible
  • X11
    • Image flipping and color conversion
      • Like EGL, but this time we can't inject code in the shaders, so CPU formatting should be the default
      • It may be possible to run a separate graphics pipeline over the VKImages once they have been submitted to the Swapchain, to convert the format and flipping the X axis (or a compute pipeline could work even better for this workload)
    • Presenting also like EGL, via shared memory Pixmaps
  • Wayland
    • More options for formats, choose one HardwareBuffers and the compositor support if possible
    • Doesn't need to flip the X axis
    • Try to create wl_shm buffers from HardwareBuffer DMABUF fd
    • Use the custom HardwareBuffer protocol if supported instead
@twaik
Copy link
Contributor

twaik commented Jun 9, 2023

Maybe this link will fit here. https://gitlab.freedesktop.org/mesa/vulkan-wsi-layer .

@tareksander
Copy link
Owner Author

Looks interesting, but only supports Wayland. Maybe I can add X11 support for it.

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