1
0
Fork 0
forked from wry/wry

autocommit 2022-04-21 17:40:28 CEST

This commit is contained in:
Julian Orth 2022-04-21 17:40:28 +02:00
parent 939d20eab4
commit 0d414a5336
2 changed files with 6 additions and 4 deletions

View file

@ -272,11 +272,13 @@ impl DrmMaster {
}
let mut strides = [0; 4];
let mut offsets = [0; 4];
let mut modifiers = [0; 4];
let mut handles = [0; 4];
let mut handles_ = vec![];
for (idx, plane) in dma.planes.iter().enumerate() {
strides[idx] = plane.stride;
offsets[idx] = plane.offset;
modifiers[idx] = modifier;
let handle = self.gem_handle(plane.fd.raw())?;
handles[idx] = handle.handle();
handles_.push(handle);
@ -290,7 +292,7 @@ impl DrmMaster {
handles,
strides,
offsets,
modifier,
modifiers,
) {
Ok(fb) => Ok(DrmFramebuffer {
master: self.clone(),