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:
Kenny Levinsen 2024-06-25 12:52:09 +02:00
parent b385af41dc
commit dfbb819044
4 changed files with 11 additions and 1 deletions

View file

@ -324,6 +324,8 @@ struct wlr_vk_renderer {
VkImage dst_image;
VkDeviceMemory dst_img_memory;
} read_pixels_cache;
bool direct_shm_import;
};
// vertex shader push constant range data