OpenGL artifact craziness.

Compiz, KDE, Gnome, Fluxbox, etc...

Moderator: Moderators

OpenGL artifact craziness.

Postby Exospaciac » Tue May 06, 2008 3:58

So I just got done world updating on this system and any OpenGL game I try to play is completely screwy.
Image

There is a picture of what happens when I try to run CS 1.6 in OpenGL mode. In D3D mode it runs fine.
Doom 3 does pretty much the same thing when I try to run it.
Nexuiz does not do anything like this, but Sauerbraten does it during the loading screen. Gameplay seems to be fine, though.
Alien Arena is completely messed up, as is Warsow.


eselect opengl list shows this:
Code: Select all
mikey@l33tbox ~ $ eselect opengl list
Available OpenGL implementations:
  [1]   ati
  [2]   nvidia *
  [3]   xorg-x11

so I know that's not the issue.

I DO have my GPU overclocked, but it's a fairly moderate overclock and it doesn't affect Compiz Fusion or any D3D/DX9 games running through WINE.
My nVidia drivers are 169.12, the latest available.

So, what could the issue be?
Exospaciac
Simple Hen
 
Posts: 48
Joined: Sun Jan 20, 2008 15:09

Re: OpenGL artifact craziness.

Postby xlnagla » Tue May 06, 2008 5:13

my ati drivers from entropy had funky linking problems 'till I recompiled them and did some of the more interesting fixes (that have already been posted here) - remove ati and recompile nvidia, perhaps?

~xlnagla
xlnagla
Sagely Hen
 
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: OpenGL artifact craziness.

Postby Exospaciac » Tue May 06, 2008 5:32

I'll try rebuilding those drivers in just a minute.
Here's my xorg.conf in case that might be the problem:

Code: Select all
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (root@l33tbox)  Wed Apr 23 20:05:08 PDT 2008

# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
# **********************************************************************
# Graphics device section
# **********************************************************************
# Any number of graphics device sections may be present
# **********************************************************************
# Screen sections.
# **********************************************************************

Section "ServerLayout"

# The Identifier line must be present
    #InputDevice "Synaptics1" "SendCoreEvents"
    Identifier     "Main Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse1" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
    SubSection     "extmod"
        Option         "omit xfree86-dga"
    EndSubSection
    Load           "i2c"
    Load           "ddc"
    Load           "synaptics"
    Load           "vbe"
#   Load        "dri"
    Load           "glx"
#   Load        "glcore"
EndSection

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "true"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"

    #Option      "MaxSpeed"      "0.7"
    #Option      "MinSpeed"      "0.18"
    #Option      "AccelFactor"      "0.08"
    #Option      "TopEdge"      "120"
    #Option      "LeftEdge"      "120"
    #Option      "BottomEdge"      "830"
    #Option      "RightEdge"      "650"
    #Option      "FingerLow"      "25"
    #Option      "FingerHigh"      "30"
    # MacBook touchpad
    #Option      "MaxTapTime"      "180"
    #Option      "MaxTapMove"      "220"
    #Option      "MaxDoubleTapTime"   "180"
    #Option      "VertScrollDelta"   "20"
    #Option      "HorizScrollDelta"   "50"
    #Option      "TapButton2"      "3"
    #Option      "TapButton3"      "2"
    #Option      "VertTwoFingerScroll"   "1"
    # Do you keep moving the mouse while typing? Try this trick.
    #synclient TouchpadOff=1 disable your synaptics touchpad
    #synclient TouchpadOff=0 enable your synaptics touchpad
    Identifier     "Synaptics1"
    Driver         "synaptics"
    Option         "SendCoreEvents" "true"
    Option         "Device" "/dev/psaux"
    Option         "Protocol" "auto-dev"
    Option         "HorizScrollDelta" "0"
    Option         "SHMConfig" "on"
    # For ALPS/MacBook TouchPads
EndSection

Section "InputDevice"
    Identifier     "Mouse1"
    Driver         "mouse"
    Option         "Device" "/dev/psaux"
EndSection

Section "Monitor"
    Identifier     "Generic Monitor"
    HorizSync       28.0 - 80.0
    VertRefresh     43.0 - 60.0
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "COMPAQ 7500"
    HorizSync       30.0 - 70.0
    VertRefresh     50.0 - 140.0
EndSection

Section "Device"
 # do not remove vesa
    #Option "BusType" "PCI"
    #Option "ColorTiling" "on"
    #Option "EnablePageFlip" "on"
    Identifier     "vesa"
    Driver         "nvidia"
    Option         "RenderAccel" "on"
    #Option "XAANoOffscreenPixmaps"
    Option         "AccelMethod" "XAA"
    Option         "AllowGLXWithComposite" "True"
    Option         "DamageEvents" "True"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7900 GTX"
    Option         "Coolbits" "1"
EndSection

Section "Screen"

# The Identifier, Device and Monitor lines must be present
    Identifier     "Screen 1"
    Device         "VESA"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    Option         "AddARGBGLXVisuals" "true"
# The favoured Depth and/or Bpp may be specified here
    SubSection     "Display"

        #Modes      "1024x768" "800x600" "640x480"
        Viewport    0 0
        Depth       8
    EndSubSection
    SubSection     "Display"

        #Modes      "1024x768" "800x600" "640x480"
        Viewport    0 0
        Depth       16
    EndSubSection
    SubSection     "Display"

        #Modes      "1024x768" "800x600" "640x480"
        Viewport    0 0
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "1280x1024 +0+0"
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

Exospaciac
Simple Hen
 
Posts: 48
Joined: Sun Jan 20, 2008 15:09

Re: OpenGL artifact craziness.

Postby xlnagla » Wed May 07, 2008 2:21

don't actually have the time to read through it now, here's mine for comparison -
Code: Select all
Section "Files"


    #FontPath   "/usr/share/fonts/local/"
    FontPath    "/usr/share/fonts/misc/"
    FontPath    "/usr/share/fonts/Type1/"
    FontPath    "/usr/share/fonts/TTF/"
    FontPath    "/usr/share/fonts/75dpi/"
    FontPath    "/usr/share/fonts/100dpi/"
    FontPath    "/usr/share/fonts/corefonts"

EndSection

# **********************************************************************
# Module section -- this is an optional section which is used to specify
# which run-time loadable modules to load when the X server starts up.
# **********************************************************************

Section "Module"

    Load        "dbe"
    Load        "i2c"
    Load        "glx"
    Load        "ddc"
    Load        "type1"
    Load        "freetype"
    Load        "extmod"
    Load        "synaptics"
    Load        "vbe"
   Load        "dri"

EndSection


# **********************************************************************
# Server flags section.  This contains various server-wide Options.
# **********************************************************************

Section "ServerFlags"

     Option     "AllowMouseOpenFail" "true"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"
    Identifier          "Synaptics1"
    Driver              "synaptics"
    Option              "SendCoreEvents"        "true"
    Option              "Device"                "/dev/psaux"
    Option              "Protocol"              "auto-dev"
    Option              "HorizScrollDelta"      "0"
    Option              "SHMConfig"             "on"
    # For ALPS/MacBook TouchPads
    Option              "MaxSpeed"              "0.7"
    Option              "MinSpeed"              "0.18"
    Option              "AccelFactor"           "0.08"
    Option              "TopEdge"               "120"
    Option              "LeftEdge"              "120"
    Option              "BottomEdge"            "830"
    Option              "RightEdge"             "650"
    Option              "FingerLow"             "25"
    Option              "FingerHigh"            "30"
    # MacBook touchpad
    #Option             "MaxTapTime"            "180"
    #Option             "MaxTapMove"            "220"
    #Option             "MaxDoubleTapTime"      "180"
    #Option             "VertScrollDelta"       "20"
    #Option             "HorizScrollDelta"      "50"
    #Option             "TapButton2"            "3"
    #Option             "TapButton3"            "2"
    #Option             "VertTwoFingerScroll"   "1"

    # Do you keep moving the mouse while typing? Try this trick.
    #synclient TouchpadOff=1 disable your synaptics touchpad
    #synclient TouchpadOff=0 enable your synaptics touchpad
EndSection

Section "InputDevice"

        Identifier      "keyboard0"
        Driver     "kdb"
    Option      "AutoRepeat"    "500 5"
    Option      "XkbModel"      "pc105"
    Option      "XkbLayout"     "it"
    Option      "XkbRules"      "xorg"
EndSection


Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "kbd"

    Option      "AutoRepeat"    "500 5"
    Option      "XkbModel"      "pc105"
    Option      "XkbLayout"     "us"
    Option      "XkbRules"      "xorg"
    # Macintosh keyboard
    #Option     "XkbOptions"    "lv3:rwin_switch"

EndSection


Section "InputDevice"
  Driver        "wacom"
  Identifier    "wacom1"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "stylus"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "wacom2"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "eraser"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver        "wacom"
  Identifier    "wacom3"
  Option        "Device"        "/dev/wacom"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "cursor"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

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


Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"

    Option      "Device"        "/dev/psaux"
    Option      "Protocol"      "ImPS/2"
    Option      "ZAxisMapping"  "4 5"

EndSection

Section "InputDevice"
    Identifier  "Mouse2"
    Driver      "mouse"
    Option      "Protocol"      "ImPS/2"
    Option      "Device"        "/dev/input/mice"
    Option      "ZAxisMapping" "4 5"
EndSection


# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"

    Identifier  "Generic Monitor"
    #Option      "DPMS"

    VertRefresh 43 - 60
    HorizSync   28 - 80

EndSection

# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

Section "Device"
    Identifier  "VESA"
    Driver      "radeon" # do not remove vesa
    Option "AccelMethod" "XAA"
    #Option "RenderAccel" "on"
    Option "XAANoOffscreenPixmaps" "true"
    #Option "BusType" "PCI"
    #Option "ColorTiling" "on"
    #Option "EnablePageFlip" "on"
EndSection


# **********************************************************************
# Screen sections.
# **********************************************************************

Section "Screen"

# The Identifier, Device and Monitor lines must be present

    Identifier  "Screen 1"
    Device      "VESA"
    Monitor     "Generic Monitor"
    #Option "AddARGBGLXVisuals" "true"

# The favoured Depth and/or Bpp may be specified here

    DefaultDepth 24

    SubSection "Display"
        Depth           8
        ViewPort        0 0
        Modes           "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection

    SubSection "Display"
        Depth           16
        ViewPort        0 0
        Modes           "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection

    SubSection "Display"
        Depth           24
        ViewPort        0 0
        Modes           "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection


EndSection


Section "ServerLayout"
# The Identifier line must be present

    Identifier  "Main Layout"
    Screen 0    "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Mouse2" "SendCoreEvents"
    InputDevice "Synaptics1" "SendCoreEvents"
    #InputDevice "wacom1" "SendCoreEvents"
    #InputDevice "wacom2" "SendCoreEvents"
    #InputDevice "wacom3" "SendCoreEvents"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

Section "DRI"
    Mode 0666
EndSection

Section "Extensions"
   #Option "Composite" "Enable"
EndSection
xlnagla
Sagely Hen
 
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: OpenGL artifact craziness.

Postby Exospaciac » Wed May 07, 2008 3:21

I figured out that my issue only exists when my card is overclocked.
Even when my card is overclocked just by 1MHz in either the memory or the core, OpenGL goes all crazy until I restart X, even if I reset the clock speeds of the card back to stock.
I shouldn't NEED to overclock my card, but I would like it if I could squeeze every bit of performance I could from it :P
Again, when it's overclocked, D3D/DX9 games and Compiz Fusion are not affected at all; only OpenGL games give me issues.
Exospaciac
Simple Hen
 
Posts: 48
Joined: Sun Jan 20, 2008 15:09

Re: OpenGL artifact craziness.

Postby xlnagla » Wed May 07, 2008 3:42

aha! I've discovered something - /proc's data for your card is set at install, you'll need to fix that otherwise programs will try to use it, producing odd results - http://www.sabayonlinux.org/forum/viewtopic.php?f=56&t=13415&p=76749&hilit=proc+coreutils#p76749
xlnagla
Sagely Hen
 
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: OpenGL artifact craziness.

Postby Exospaciac » Wed May 07, 2008 4:49

So how would I go about fixing that?
I didn't really get anything from that thread, as that's for the CPU only. (right?)
Not only that, but cat /proc/cpuinfo displays my CPU overclock correctly by default.
Exospaciac
Simple Hen
 
Posts: 48
Joined: Sun Jan 20, 2008 15:09


Return to 3D Desktops and Window Managers

Who is online

Users browsing this forum: No registered users and 1 guest