mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-19 06:47:02 -04:00
render/vulkan: Guard hostmem import with env flag
Direct host memory import is experimental. Put it behind an environment variable to allow easy testing.
This commit is contained in:
parent
b385af41dc
commit
dfbb819044
4 changed files with 11 additions and 1 deletions
|
|
@ -456,7 +456,8 @@ static struct wlr_texture *vulkan_texture_from_pixels(
|
|||
img_info.flags |= VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT;
|
||||
}
|
||||
|
||||
if (renderer->dev->api.vkGetMemoryHostPointerPropertiesEXT) {
|
||||
if (renderer->direct_shm_import &&
|
||||
renderer->dev->api.vkGetMemoryHostPointerPropertiesEXT) {
|
||||
img_info.tiling = VK_IMAGE_TILING_LINEAR;
|
||||
img_info.initialLayout = VK_IMAGE_LAYOUT_PREINITIALIZED;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue