mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-06 10:21:57 +08:00
map hardware surface as scanout framebuffer for clients
This commit is contained in:
@@ -2337,6 +2337,11 @@ GAL_Surface* __drm_create_surface_from_name (GHANDLE video,
|
||||
name);
|
||||
return NULL;
|
||||
}
|
||||
if (!vdata->driver_ops->map_buffer(vdata->driver, surface_buffer, 1)) {
|
||||
_ERR_PRINTF ("NEWGAL>DRM: cannot map screen buffer: %m\n");
|
||||
vdata->driver_ops->destroy_buffer(vdata->driver, surface_buffer);
|
||||
return NULL;
|
||||
}
|
||||
surface_buffer->dumb = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user