autocommit 2022-03-12 22:58:30 CET
This commit is contained in:
parent
21527b3e38
commit
133035e0a6
8 changed files with 41 additions and 74 deletions
|
|
@ -119,7 +119,7 @@ unsafe fn export_bo(bo: *mut Bo) -> Result<DmaBuf, GbmError> {
|
|||
|
||||
impl GbmDevice {
|
||||
pub fn new(drm: &Drm) -> Result<Self, GbmError> {
|
||||
let drm = drm.dup_unprivileged()?;
|
||||
let drm = drm.dup_render()?;
|
||||
let dev = unsafe { gbm_create_device(drm.raw()) };
|
||||
if dev.is_null() {
|
||||
Err(GbmError::CreateDevice)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue