1
0
Fork 0
forked from wry/wry

autocommit 2022-02-06 16:33:54 CET

This commit is contained in:
Julian Orth 2022-02-06 16:33:54 +01:00
parent c92346324b
commit dc2cb71012
104 changed files with 2563 additions and 4617 deletions

View file

@ -3,6 +3,7 @@ use crate::drm::drm::{Drm, DrmError};
use crate::drm::{ModifiedFormat, INVALID_MODIFIER};
use crate::format::formats;
use std::ptr;
use std::rc::Rc;
use thiserror::Error;
use uapi::{c, OwnedFd};
@ -102,7 +103,7 @@ unsafe fn export_bo(bo: *mut Bo) -> Result<DmaBuf, GbmError> {
planes.push(DmaBufPlane {
offset,
stride,
fd: OwnedFd::new(fd),
fd: Rc::new(OwnedFd::new(fd)),
})
}
planes