1
0
Fork 0
forked from wry/wry

drm: preserve GbmBos while they are in use

This commit is contained in:
Julian Orth 2024-05-08 23:10:22 +02:00
parent 760658522c
commit 110f45fef7
5 changed files with 25 additions and 7 deletions

View file

@ -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],