AnsweredAssumed Answered

Using EGL and DirectFB in IMX6Q

Question asked by Ali Sarlak on Jun 2, 2016
Latest reply on Jun 15, 2016 by Bio_TICFSL

Hi Community,

 

I realized that if I use DirectFB I can access to GC320, my plan is using DirectFB and EGL at the same time because other standard API such as OpenGL and OpenVG use the EGL to get their drawing surfaces so I wrote a code for this and I attached it(DFB.cpp).

 

When I use DirectFB alone I don’t have serious problem you can set :

#undef DFB_ONLY

To

#define DFB_ONLY

in my code to use just DirectFb.

 

But when I used EGL and DirectFB (#undef DFB_ONLY) and also I set the fb by:

fbset -fb /dev/fb0 -g 800 600 2048 2048 32

On eglSwapBuffers I ran into [SIG 11]!!! the output of my app is:

 

!--START--!

commandline read: dfb

 

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.0 |~~~~~~~~~~~~~~~~~~~~~~~~~~

        (c) 2001-2009  The world wide DirectFB Open Source Community

        (c) 2000-2004  Convergence (integrated media) GmbH

      ----------------------------------------------------------------

 

(*) DirectFB/Core: Single Application Core. (2016-05-28 04:39)

(*) Direct/Memcpy: Using libc memcpy()

(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0] <8388608>...

(*) Direct/Thread: Started 'VT Flusher' (-1) [DEFAULT OTHER/OTHER 0/0] <8388608>...

(*) DirectFB/FBDev: Found 'DISP4 BG' (ID 0) with frame buffer at 0x19000000, 16384k (MMIO 0x00000000, 0k)

(*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...

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

(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...

(*) DirectFB/Input: gpio-keys 0.1 (directfb.org)

(*) Using the default feature settings.

(*) DirectFB/Graphics: Vivante unknown chip model 1.0 (Vivante)

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

(*) FBDev/Mode: Setting 800x600 RGB32

(*) FBDev/Mode: Switched to 800x600 (virtual 800x1200) at 32 bit (RGB32), pitch 3200

(*) FBDev/Surface: Allocated 800x600 32 bit RGB32 buffer (index 0) at offset 0 and pitch 3200.

(*) FBDev/Surface: Allocated 800x600 32 bit RGB32 buffer (index 1) at offset 1920000 and pitch 3200.

id=14, a,b,g,r=8,8,8,8, d,s=16,0, AA=0,openvgbit=23, surfacebit=1415

[ 2782:    0.000] --> Caught signal 11 (at 0x24598, invalid permissions) <--

(!!!)  *** WARNING [still objects in 'Window Pool'] *** [object.c:241 in fusion_object_pool_destroy()]

(!!!)  *** WARNING [still objects in 'Layer Region Pool'] *** [object.c:241 in fusion_object_pool_destroy()]

(!!!)  *** WARNING [still objects in 'Layer Context Pool'] *** [object.c:241 in fusion_object_pool_destroy()]

(!!!)  *** WARNING [still objects in 'Surface Pool'] *** [object.c:241 in fusion_object_pool_destroy()]

Aborted

 

What's wrong?

 

Regards,

Ali

Original Attachment has been moved to: DFB.cpp.zip

Attachments

Outcomes