Skip to content

neo-technologies/xf86-video-fbturbo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RK3188 support for xf86-video-fbturbo

Prerequisites

  • You should be a developer or at least comfortable building stuff from source and debugging it. Not for the faint-hearted.
  • A patched kernel. You can get it here. Alternatively, if you'd like to cherry pick the patches into another kernel tree, each relevant one is described in the README file of that repository. My initial intention was not to require any kernel patches, but various things were unsupported or broken without feasible work-arounds. Warning, trying to run this driver on a kernel without the required patches might put the system in a state that requires a power cycle to recover. There should be no risk of hardware damage, but all the usual disclaimers apply: use at your own risk.

Installation

Boot the patched kernel and then follow the standard fbturbo instructions.

What works

  • hardware accelerated XV driver, with which does image scaling and colorspace conversion in hardware (using the LCDC)
  • RGA-accelerated framebuffer-to-framebuffer blits
  • hardware cursor support (using the LCDC)

What does that mean?!

  • You can watch videos scaled up or down, including fullscreen. 720p videos scaled up to fullscreen on a 1080p display work quite nicely. I would strongly recommend to use mplayer compiled with NEON support.
  • Scrolling, especially of large surfaces, is faster. Note that some benchmarks (e.g. x11perf -scroll500) will show slightly poorer results compared to a software implementation. However, since the CPU is idle during blits, it can service other processes. Under real world usage, the GUI should feel more responsive.
  • You can see the cursor on top of the video overlay (as opposed to a software cursor which would be hidden). It can also be displayed on top of windows with rapidly changing contents.

Yet to be tested

  • I haven't actually used the published instructions and code (kernel and fbturbo) to set up a clean system. There's a small chance I forgot to include some patch. Let me know whether it worked for you.
  • Use in any other color depth configuration apart from 16 bit (RGB565).
  • Mali accelerated 3D graphics. I have no use for it, so I don't have the Mali drivers set up.

Known issues

  • XV videos are single buffered. This means there will be some tearing. In my experience it's not too noticeable, but I'm looking at getting it fixed.
  • Minor visual glitches when actively moving XV windows which are partially offscreen. Everything should recover when a window is left still. This seems to be a regression introduced when I was doing some refactoring, I'll get it fixed somehow.
  • The video layer is always above other content (i.e. the contents of the mplayer window behave as if it would be set as 'always on top'). There is some inactive code for implementing proper behavior using color keying, but it has worse issues. :)

Thanks

ssvb

About

RK3188 port of xf86-video-fbturbo

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 96.0%
  • Assembly 3.5%
  • Other 0.5%