Update smithay

This commit is contained in:
Ian Douglas Scott 2024-01-06 22:29:16 -08:00 committed by Victoria Brekenfeld
parent 9ce6a871c1
commit b2b718dbea
3 changed files with 21 additions and 16 deletions

View file

@ -168,8 +168,13 @@ where
return;
}
let mut dma = Dmabuf::builder((width, height), format, DmabufFlags::empty());
dma.add_plane(name, 0, offset0 as u32, stride0 as u32, Modifier::Invalid);
let mut dma = Dmabuf::builder(
(width, height),
format,
Modifier::Invalid,
DmabufFlags::empty(),
);
dma.add_plane(name, 0, offset0 as u32, stride0 as u32);
match dma.build() {
Some(dmabuf) => {
match state.dmabuf_imported(&data.dmabuf_global, dmabuf.clone()) {