3 ms·
Instead of using the deprecated /dev/fb interface, you should be using DRM/KMS instead, which has support for modesetting, page flipping, cursors, overlays/plan
by Jasper_ 11y ago
Instead of using the deprecated /dev/fb interface, you should be using DRM/KMS instead, which has support for modesetting, page flipping, cursors, overlays/planes (including YUV planes), and plenty more.
I have a simple toy app that shows how to use the API here: https://github.com/magcius/drmdemo https://github.com/magcius/drmdemo
- voltagex_ 11y agois KMS going to work in VirtualBox without the extensions?
- Jasper_ 11y agoIn VirtualBox without the extensions, I believe we will currently fall back to either VESA or EFI GOP modesetting, neither of which indeed have KMS support yet. There was a patchset to support KMS for simple fb fallbacks, but it hasn't been merged yet. http://cgit.freedesktop.org/~dvdhrm/linux/log/?h=simpledrm http://cgit.freedesktop.org/~dvdhrm/linux/log/?h=simpledrm However, I definitely wouldn't throw out KMS just to support VESA / GOP. They don't support page flipping, so you get lots of tearing. With the extensions, vboxdrv supplies a KMS driver. https://www.virtualbox.org/svn/vbox/trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c https://www.virtualbox.org/svn/vbox/trunk/src/VBox/Additions...
- stonogo 11y agoI think we have different understandings of "raw video." I have too much hardware unsupported by KMS to regard it as a solution. I have zero hardware that does not support VESA output.