1
0
Fork 0
forked from wry/wry

vulkan: attach last-use-syncfile to internal framebuffers

This commit is contained in:
Julian Orth 2024-10-08 19:22:24 +02:00
parent cc8db84289
commit 901a0fe93a
3 changed files with 11 additions and 4 deletions

View file

@ -824,11 +824,18 @@ impl VulkanRenderer {
if attach_async_shm_sync_file {
if let VulkanImageMemory::Internal(shm) = &texture.tex.ty {
if let Some(data) = &shm.async_data {
data.last_sample.set(Some(sync_file.clone()));
data.last_gfx_use.set(Some(sync_file.clone()));
}
}
}
}
if attach_async_shm_sync_file {
if let VulkanImageMemory::Internal(shm) = &fb.ty {
if let Some(data) = &shm.async_data {
data.last_gfx_use.set(Some(sync_file.clone()));
}
}
}
import(fb, fb_release_sync, None, DMA_BUF_SYNC_WRITE);
}