wip: add support for Vulkan software rendering

VK_EXT_external_memory_host allows us to instruct llvmpipe to
render to an existing chunk of memory.
This commit is contained in:
Simon Ser 2022-01-30 09:45:40 +01:00
parent 77951968dc
commit e2518ea9de
6 changed files with 215 additions and 26 deletions

View file

@ -261,6 +261,12 @@ void vulkan_format_props_query(struct wlr_vk_device *dev,
}
// non-dmabuf texture properties
if (fmtp.formatProperties.optimalTilingFeatures & render_features) {
wlr_drm_format_set_add(&dev->shm_render_formats,
format->drm_format, DRM_FORMAT_MOD_INVALID);
add_fmt_props = true;
}
if (fmtp.formatProperties.optimalTilingFeatures & tex_features) {
fmti.pNext = NULL;
ifmtp.pNext = NULL;