1
0
Fork 0
forked from wry/wry

dmabuf: optimize sync-file export/import

This commit is contained in:
Julian Orth 2025-10-01 23:37:04 +02:00
parent 0884a5c656
commit 86680e0cc8
2 changed files with 10 additions and 0 deletions

View file

@ -1649,6 +1649,9 @@ impl VulkanRenderer {
let fd = dma_buf_export_sync_file(&plane.fd, flag)
.map_err(VulkanError::IoctlExportSyncFile)?;
import_sync_file(fd)?;
if buf.template.dmabuf.is_one_file() {
break;
}
}
}
AcquireSync::SyncFile { sync_file } => {