dmabuf: cache is_disjoint property
This commit is contained in:
parent
f00202f149
commit
0884a5c656
9 changed files with 27 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue