Vertical Synchronization

Nicolas Cadio nicolas.cadio at ymail.com
Mon Aug 17 01:05:26 PDT 2009


Hi all,

I try to use the vertical synchronization on a program which use the functions of openGL (glXWaitVideoSyncSGI), but the driver drm.ko does a wait (DRM_WAIT_ON) on the crtc 0 and does a wake up (DRM_WAKEUP) on the crtc 1. 

If I put the wait on the crtc 1 in the source of the driver, I have a synchronisation.

So I would like to know how to configure my Xserver to do the wait and the wake up on the crtc 1.

this is my xorg.conf :

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    #InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    #Option "AIGLX" "false"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/lib/X11/fonts/misc/"
    FontPath     "/usr/lib/X11/fonts/TTF/"
    FontPath     "/usr/lib/X11/fonts/OTF"
    FontPath     "/usr/lib/X11/fonts/Type1/"
    FontPath     "/usr/lib/X11/fonts/100dpi/"
    FontPath     "/usr/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
    Load  "dbe"
    Load  "dri"
    Load  "dri2"
    Load  "extmod"
    Load  "glx"
EndSection

Section "ServerFlags"
    Option    "blank time"    "0"    
    Option    "standby time"    "0"
    Option    "suspend time"    "0"
    Option    "off time"    "0"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

#Section "InputDevice"
#    Identifier  "Mouse0"
#    Driver      "mouse"
#    Option        "Protocol" "auto"
#    Option        "Device" "/dev/input/mice"
#    Option        "ZAxisMapping" "4 5 6 7"
#EndSection

Section "Monitor"
    Identifier    "TMDS-1"
    Option        "DPMS"
    VendorName    "Monitor Vendor"
    ModelName    "Monitor Model"
    Modeline "1024x768 INITIAL MODE" 64.99 1024 1048 1184 1344 768 771 777 806 -HSync -VSync
    Modeline "1280x720 60Hz CEA" 74.25 1280 1500 1540 1650 720 725 730 750 +HSync +VSync
    ModeLine "1360x768 60Hz" 85.50 1360 1392 1712 1744 768 783 791 807 +HSync +Vsync
    ModeLine "1366x768 60Hz" 85.86 1366 1440 1584 1800 768 769 772 795 -HSync +Vsync
    Modeline "1376x768 60Hz VESA" 85.25 1376 1448 1584 1784 768 771 781 798 -HSync +VSync
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"        "False"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "ColorKey"               # <i>
        #Option     "CacheLines"             # <i>
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "DRI"        "True"                    # [<bool>]
        #Option     "NoDDC"          "True"                # [<bool>]
        #Option     "ShowCache"              # [<bool>]
        #Option     "XvMCSurfaces"           # <i>
        #Option     "PageFlip"               # [<bool>]
        Option        "ForceEnablePipeB"    "True"
        Option        "SwapbuffersWait"     "True"
    Identifier  "Card0"
    Driver      "intel"
    VendorName  "Unknown Vendor"
    BoardName   "Unknown Board"
    BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "TMDS-1"
    SubSection "Display"
        Viewport   0 0
        Depth     16
        Modes "1024x768 INITIAL MODE" "1280x720 60Hz CEA" "1360x768 60Hz" "1366x768 60Hz" "1376x768 60Hz VESA"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes "1024x768 INITIAL MODE" "1280x720 60Hz CEA" "1360x768 60Hz" "1366x768 60Hz" "1376x768 60Hz VESA"
    EndSubSection
EndSection

 

Thank for your help, nicolas


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20090817/b9a8ab20/attachment.html>


More information about the xorg mailing list