README.DirectFB
author Sam Lantinga <slouken@libsdl.org>
Mon, 01 Dec 2008 00:10:49 +0000
changeset 2815 e759ad5e6f43
parent 2791 8133d1d278da
child 2998 d364ee9b9c15
permissions -rw-r--r--
Date: Mon, 01 Dec 2008 00:57:15 +0100
From: Couriersud
Subject: SDL : Diff for directfb driver

please find attached a diff against SVN containing the following:

- Updated README.DirectFB a bit
- Fix compile issue with debug output
- Fix display mode setting/switching for directfb >= 1.2.2
     1 SDL on DirectFB
     2 
     3 Supports:
     4 
     5 - Hardware YUV overlays
     6 - OpenGL - software only
     7 - 2D/3D accelerations (depends on directfb driver)
     8 - multiple displays
     9 - windows
    10 
    11 What you need:
    12 
    13 DirectFB 1.0.1, 1.2.x, 1.3.0
    14 Kernel-Framebuffer support: required: vesafb, radeonfb .... 
    15 Mesa 7.0.x	   - optional for OpenGL
    16 
    17 /etc/directfbrc
    18 
    19 This file should contain the following lines to make
    20 your joystick work and avoid crashes:
    21 ------------------------
    22 disable-module=joystick
    23 disable-module=linux_input
    24 disable-module=cle266
    25 disable-module=cyber5k
    26 disable-module=x11input
    27 ------------------------
    28 
    29 To use hardware accelerated YUV-overlays for YUV-textures, use:
    30 
    31 export SDL_DIRECTFB_YUV_DIRECT=1
    32 
    33 This is disabled by default. It will only support one 
    34 YUV texture, namely the first. Every other YUV texture will be
    35 rendered in software.
    36 
    37 In addition, you may use (directfb-1.2.x)
    38 
    39 export SDL_DIRECTFB_YUV_UNDERLAY=1
    40 
    41 to make the YUV texture an underlay. This will make the cursor to
    42 be shown.
    43 
    44 OPENGL Support
    45 ==============
    46 
    47 As of this writing 20070810 you need to pull Mesa from git and do the following:
    48 
    49 ------------------------
    50 cd mesa 
    51 make linux-directfb
    52 make
    53 
    54 echo Installing - please enter sudo pw.
    55 
    56 sudo make install INSTALL_DIR=/usr/local/dfb_GL
    57 cd src/mesa/drivers/directfb
    58 make
    59 sudo make install INSTALL_DIR=/usr/local/dfb_GL
    60 ------------------------
    61 
    62 To run the SDL - testprograms:
    63 
    64 export SDL_VIDEODRIVER=directfb
    65 export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
    66 export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
    67 
    68 ./testgl