Skip to content

Draft: render/vulkan: Implement allocator

Kenny Levinsen requested to merge kennylevinsen/wlroots:vulkan-allocator into master

This is an initial attempt at allowing renderers to expose allocation functionality, allowing us to skip GBM initialization when using Vulkan drivers.

Based on !2648, where I stole most of the actual allocation code.

Todo:

  • Move to render/vulkan/allocator.c
  • Optimize use as render target by using the VkImage directly, rather than going through an export->import cycle (tried doing it once, got glitches)
  • Test
  • Hide behind WLR_VK_ env flag due to dangers?
Edited by Kenny Levinsen

Merge request reports

Loading