staging: framebuffer port from 3.0.8