drm: preserve GbmBos while they are in use
This commit is contained in:
parent
760658522c
commit
110f45fef7
5 changed files with 25 additions and 7 deletions
|
|
@ -138,6 +138,12 @@ pub struct GbmBo {
|
|||
dmabuf: DmaBuf,
|
||||
}
|
||||
|
||||
impl Debug for GbmBo {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_struct("GbmBo").finish_non_exhaustive()
|
||||
}
|
||||
}
|
||||
|
||||
pub struct GbmBoMap {
|
||||
bo: Rc<GbmBo>,
|
||||
data: *mut [u8],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue