1
0
Fork 0
forked from wry/wry

dmabuf: cache is_disjoint property

This commit is contained in:
Julian Orth 2025-10-01 23:30:49 +02:00
parent f00202f149
commit 0884a5c656
9 changed files with 27 additions and 14 deletions

View file

@ -93,6 +93,7 @@ impl ZwpLinuxBufferParamsV1 {
format: format.format,
modifier,
planes: PlaneVec::new(),
is_disjoint: Default::default(),
};
let mut planes: Vec<_> = self.planes.borrow_mut().drain_values().collect();
planes.sort_by_key(|a| a.plane_idx);