gbm: hard-code invalid modifier if explicit modifiers are not supported
This commit is contained in:
parent
be5c2bc99a
commit
413bbde26b
1 changed files with 4 additions and 1 deletions
|
|
@ -237,7 +237,10 @@ impl GbmDevice {
|
||||||
return Err(GbmError::CreateBo(OsError::default()));
|
return Err(GbmError::CreateBo(OsError::default()));
|
||||||
}
|
}
|
||||||
let bo = BoHolder { bo };
|
let bo = BoHolder { bo };
|
||||||
let dma = export_bo(dma_buf_ids, bo.bo)?;
|
let mut dma = export_bo(dma_buf_ids, bo.bo)?;
|
||||||
|
if modifiers.is_null() {
|
||||||
|
dma.modifier = INVALID_MODIFIER;
|
||||||
|
}
|
||||||
Ok(GbmBo { bo, dmabuf: dma })
|
Ok(GbmBo { bo, dmabuf: dma })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue