AnsweredAssumed Answered

DirectFB hardware acceleration on iMX53

Question asked by Steve Green on Oct 18, 2012
Latest reply on Oct 22, 2012 by imxcommunityscout
Branched to a new discussion

Could anyone help please on getting hardware acceleration for work with DirectFB on the iMX53 QSB.

 

We've successfully built DirectFB 1.6.2 in ltib, along with the latest demos.

 

Most of the demos run fine, but it looks like graphics hardware acceleration is not being used. Demos show this in the output text:

 

........

(*) DirectFB/Input: Keyboard 0.9 (directfb.org)

(*) DirectFB/Graphics: Generic Software Rasterizer 0.7 (directfb.org)

(*) DirectFB/Core/WM: Default 0.3 (directfb.org)

........

 

Seems from searching around that "Generic Software Rasterizer" means the acceleration is not being used. And this seems true - although the demos appear to run very fast, in our real application we are blitting video frames to a DirectFB surface and can only get 10 frames per second update rate - incredibly slow (could easily be a problem with the app though, but we'd expect at least DirectFB to try using acceleration).

 

Searching other's posts their DirectFB text output shows things like:

(*) DirectFB/Graphics: GLES2 Acceleration - VideoCore IV HW 0.1

 

Our DirectFB.spec build file contains:

 

./configure --enable-shared --host=$CFGHOST --build=%{_build} \

            --prefix=%{_prefix} --with-gfxdrivers='gles2' \

            --enable-freetype --enable-jpeg --enable-png \

            --enable-sdl --enable-egl \

            --disable-x11 --enable-fbdev --enable-video4linux2 \

            --enable-zlib $TSOPTS

 

We have a ".directfbrc" file in the home directory, we know DirectFB uses this because if we put garbage in it, DirectFB complains. Our .directfbrc contains:

 

system=egl

depth=32

mode=800x600

 

As I understand it, if acceleration functions are present DirectFB will automatically use them. In this directfbrc, "system=egl" should in any case use the acceleration functions.

 

Could someone help with how to enable hardware acceleration for DirectFB? Many thanks.

 

Outcomes