dmabuf: optimize sync-file export/import
This commit is contained in:
parent
0884a5c656
commit
86680e0cc8
2 changed files with 10 additions and 0 deletions
|
|
@ -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 } => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue