mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
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:
parent
77951968dc
commit
e2518ea9de
6 changed files with 215 additions and 26 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue