mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
render/vulkan: Refactor image usages for modifiers
Makes this much more extensible so we could add a storage type in future for compute. Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
3a685b10b6
commit
49c67c5615
5 changed files with 102 additions and 135 deletions
|
|
@ -536,8 +536,9 @@ void vulkan_device_destroy(struct wlr_vk_device *dev) {
|
|||
close(dev->drm_fd);
|
||||
}
|
||||
|
||||
wlr_drm_format_set_finish(&dev->dmabuf_render_formats);
|
||||
wlr_drm_format_set_finish(&dev->dmabuf_texture_formats);
|
||||
for (int i = 0; i < WLR_VK_IMAGE_USAGE_COUNT; i++) {
|
||||
wlr_drm_format_set_finish(&dev->dmabuf_formats[i]);
|
||||
}
|
||||
|
||||
for (unsigned i = 0u; i < dev->format_prop_count; ++i) {
|
||||
vulkan_format_props_finish(&dev->format_props[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue