-- Sent from my HP Veer



Hello,

I found that there's no information about howto build directfb with PVR2D system support
with Ti omap proccessors.

I downloaded Ti's gfx SDK, and built the gles2 gfx driver and make the kernel module and service ready.

Then I just copied pvr2d.h and wsegl.h into gfxdrivers/pvr2d. and set the LDFLAGS to link with libpvr2d, libGLESv2 libEGL.
configured directfb and enabled pvr2d system and pvr2d,omap,gles2 gfxdirvers. and when I just configured system=pvr2d in directfbrc
and run the df_dok demo.
there's some err:

---------------------
# df_dok

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.5.3 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2010  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2012-05-10 15:44)
(*) Direct/Memcpy: Using armasm_memcpy()
(*) DirectFB/PVR2D: Display 1024x768, format 1, stride 2048, refresh 0
(*) DirectFB/Graphics: PVR2D Blt 0.1 (Denis Oliver Kropp)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) Direct/Interface: Loaded 'PNG' implementation of 'IDirectFBImageProvider'.
(!) DirectFB/PVR2D: PVR2DBlt() failed! (status -1)
(*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
(*) Direct/Interface: Loaded 'GIF' implementation of 'IDirectFBImageProvider'.

Benchmarking 256x256 on 800x580 RGB16 (16bit)...

Anti-aliased Text                              3.085 secs (   22.171 KChars/sec) [ 99.6%]
Anti-aliased Text (blend)                      3.040 secs (   20.131 KChars/sec) [100.0%]
Fill Rectangle                                 3.009 secs (  283.139 MPixel/sec) [100.3%]
Fill Rectangle (blend)                         3.875 secs (    5.073 MPixel/sec) [100.0%]
Fill Rectangles [10]                           3.118 secs (  294.260 MPixel/sec) [100.0%]
Fill Rectangles [10] (blend)                  12.904 secs (    5.078 MPixel/sec) [ 99.9%]
Fill Triangles                                 3.000 secs (  151.825 MPixel/sec) [100.0%]

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

And the screen displays unrecognized things.

BUT if I don't set the system in directfbrc and leave it self-probing.
the dfb will use frambuffer and everything is ok with this benchmark:

-------------------
# df_dok

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.5.3 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2010  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2012-05-10 15:44)
(*) Direct/Memcpy: Using armasm_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 'omapfb' (ID 0) with frame buffer at 0x809d0000, 1536k (MMIO 0x00000000, 0k)
(*) Direct/Thread: Started 'Linux Input' (909) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: gpio-keys (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: TWL4030 Keypad (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: ADS7846 Touchscreen (3) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: twl4030_pwrbutton (4) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Hotplug with Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Hot-plug detection enabled with Linux Input Driver
(*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) DirectFB/Graphics: TI OMAP 0.1 (Ville Syrjala)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
 (!!!)  *** ONCE [no mode found for 800x600] *** [fbdev.c:1341 in dfb_fbdev_find_mode()]
(*) FBDev/Mode: Setting 800x600 RGB16
(*) FBDev/Mode: Switched to 800x600 (virtual 800x600) at 16 bit (RGB16), pitch 1600
(*) Direct/Interface: Loaded 'PNG' implementation of 'IDirectFBImageProvider'.
(*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
(*) Direct/Interface: Loaded 'GIF' implementation of 'IDirectFBImageProvider'.

Benchmarking 256x256 on 800x580 RGB16 (16bit)...

Anti-aliased Text                              3.002 secs (  101.932 KChars/sec) [100.0%]
Anti-aliased Text (blend)                      3.037 secs (   23.707 KChars/sec) [100.0%]
Fill Rectangle                                 3.000 secs (  281.804 MPixel/sec) [100.0%]
Fill Rectangle (blend)                         3.857 secs (    5.097 MPixel/sec) [100.0%]
Fill Rectangles [10]                           3.136 secs (  292.571 MPixel/sec) [100.0%]
Fill Rectangles [10] (blend)                  12.784 secs (    5.126 MPixel/sec) [100.0%]
Fill Triangles                                 3.006 secs (  151.522 MPixel/sec) [100.0%]
Fill Triangles (blend)                         3.291 secs (    4.978 MPixel/sec) [100.0%]
Draw Rectangle                                 3.001 secs (   15.428 KRects/sec) [100.0%]
Draw Rectangle (blend)                         3.037 secs (    1.810 KRects/sec) [100.3%]
Draw Lines [10]                                3.009 secs (   48.521 KLines/sec) [100.3%]
Draw Lines [10] (blend)                        3.102 secs (    7.736 KLines/sec) [100.0%]
Fill Spans                                     3.017 secs (  199.844 MPixel/sec) [100.0%]
Fill Spans (blend)                             3.894 secs (    5.048 MPixel/sec) [100.0%]
Fill Trapezoids [10]                           3.291 secs (  219.050 MPixel/sec) [ 99.6%]
Blit                                           3.022 secs (  225.537 MPixel/sec) [100.0%]
Blit 180                                       3.009 secs (  113.255 MPixel/sec) [100.0%]
Blit colorkeyed                                3.044 secs (   86.118 MPixel/sec) [ 99.6%]
Blit destination colorkeyed                    3.218 secs (    8.146 MPixel/sec) [100.0%]
Blit with format conversion                    3.042 secs (   71.094 MPixel/sec) [100.0%]
Blit with colorizing                           3.591 secs (   10.950 MPixel/sec) [ 99.7%]
Blit from 32bit (blend)                        3.122 secs (    4.198 MPixel/sec) [100.0%]
Blit from 32bit (blend) with colorizing        3.954 secs (    3.314 MPixel/sec) [100.0%]
Blit SrcOver (premultiplied source)            3.820 secs (    3.431 MPixel/sec) [ 99.7%]
Blit SrcOver (premultiply source)              4.310 secs (    3.041 MPixel/sec) [100.0%]
Stretch Blit                                   3.002 secs (  111.400 MPixel/sec) [100.0%]
Stretch Blit colorkeyed                        3.009 secs (   75.073 MPixel/sec) [100.3%]

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

and IF I use no-software options. the rendering with fbdev is super fast but the screen is still unreadable.
-----
# df_dok --dfb:no-software

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.5.3 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2010  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2012-05-10 15:44)
(*) Direct/Memcpy: Using armasm_memcpy()
(*) DirectFB/PVR2D: Display 1024x768, format 1, stride 2048, refresh 0
(*) DirectFB/Graphics: PVR2D Blt 0.1 (Denis Oliver Kropp)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) Direct/Interface: Loaded 'PNG' implementation of 'IDirectFBImageProvider'.
(!) DirectFB/PVR2D: PVR2DBlt() failed! (status -1)
(*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
(*) Direct/Interface: Loaded 'GIF' implementation of 'IDirectFBImageProvider'.

Benchmarking 256x256 on 800x580 RGB16 (16bit)...

Anti-aliased Text                              3.001 secs ( 2577.940 KChars/sec) [ 99.6%]
Anti-aliased Text (blend)                      3.001 secs ( 2559.946 KChars/sec) [100.0%]
Fill Rectangle                                 3.000 secs ( 47070.139 MPixel/sec) [ 99.6%]
Fill Rectangle (blend)                         3.000 secs ( 46108.945 MPixel/sec) [100.0%]
Fill Rectangles [10]                           3.000 secs ( 157919.914 MPixel/sec) [ 99.6%]
Fill Rectangles [10] (blend)                   3.000 secs ( 154817.877 MPixel/sec) [100.0%]

-----


So, My problem is there maybe something wrong with my building with dfb or my omap linux cmdline with video configration was wrong.
====
# cat /proc/cmdline
console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait vram=64M omapfb.mode=dvi:1024x768MR-16@60 omapfb.video_mode=dvi:1024x768MR-16@60 omapdss.def_disp=dvi omap-dss.def_disp=dvi
====

Please Can anybody help me ?

Many thanks!

Binghoo Dang <dangbing...@gmail.com>
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to