dmabuf: cache is_disjoint property
This commit is contained in:
parent
f00202f149
commit
0884a5c656
9 changed files with 27 additions and 14 deletions
|
|
@ -142,6 +142,7 @@ impl WlDrmRequestHandler for WlDrm {
|
|||
format,
|
||||
modifier: INVALID_MODIFIER,
|
||||
planes: PlaneVec::new(),
|
||||
is_disjoint: Default::default(),
|
||||
};
|
||||
if req.stride0 > 0 {
|
||||
dmabuf.planes.push(DmaBufPlane {
|
||||
|
|
|
|||
|
|
@ -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