From d2385fd3b268a373b366585e272f1db7d1d9af11 Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Mon, 12 Jan 2026 22:27:12 +0900 Subject: [PATCH] exported images to have dedicated allocations --- wayvr/src/graphics/dmabuf.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wayvr/src/graphics/dmabuf.rs b/wayvr/src/graphics/dmabuf.rs index 615517a..3067088 100644 --- a/wayvr/src/graphics/dmabuf.rs +++ b/wayvr/src/graphics/dmabuf.rs @@ -17,7 +17,9 @@ use vulkano::{ memory::{ DedicatedAllocation, DeviceMemory, ExternalMemoryHandleType, ExternalMemoryHandleTypes, MemoryAllocateInfo, MemoryImportInfo, MemoryPropertyFlags, ResourceMemory, - allocator::{AllocationCreateInfo, MemoryAllocator, MemoryTypeFilter}, + allocator::{ + AllocationCreateInfo, MemoryAllocatePreference, MemoryAllocator, MemoryTypeFilter, + }, }, sync::Sharing, }; @@ -329,6 +331,7 @@ pub fn export_dmabuf_image( ..Default::default() }, AllocationCreateInfo { + allocate_preference: MemoryAllocatePreference::AlwaysAllocate, ..Default::default() }, )