Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ATI OpenGL Problems
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
josh
Guru
Guru


Joined: 05 Feb 2003
Posts: 473
Location: Milky Way: Solar System: Earth: North America: USA: NY: Buffalo

PostPosted: Sun Apr 18, 2004 10:01 pm    Post subject: ATI OpenGL Problems Reply with quote

I'm having problems getting opengl with my ATI card working. It's a Radeon8500. I followed all of the how'to's in the Desktop Docs. i've tried the open source drives and the closed drivers. And I used fglrxconfig to configure my XF86Config file. It works and starts up fine, but "glxinfo |grep render" says that direct rendering is off. Can anyone point me in the right direction as to what to do here? Thanks. Here's my XF86Config file:

Code:
Section "dri"
    Mode 0666
EndSection
Section "Module"
    Load        "dbe"     # Double buffer extension
    SubSection  "extmod"
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load        "glx"   # libglx.a
    Load        "dri"   # libdri.a
EndSection
Section "Files"
    RgbPath   "/usr/X11R6/lib/X11/rgb"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "ServerFlags"
EndSection
Section "InputDevice"
    Identifier   "Keyboard1"
    Driver   "Keyboard"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "pc101"
    Option "XkbLayout"   "us"
EndSection
Section "InputDevice"
    Identifier   "Mouse1"
    Driver "mouse"
    Option "Protocol"   "ImPS/2"
    Option "ZAxisMapping"   "4 5"
    Option "Device"     "/dev/mouse"
EndSection
Section "Monitor"
    Identifier  "Monitor0"
    HorizSync   31.5 - 48.4
    VertRefresh 40-90
    Option "DPMS"
EndSection
Section "Device"
    Identifier  "Standard VGA"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver      "vga"
EndSection
Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver            "fglrx"
    #Option                              "NoDDC"
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
    Option "DesktopSetup"               "0x00000000"
    Option "MonitorLayout"              "AUTO, AUTO"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "unspecified"
    Option "VRefresh2"                  "unspecified"
    Option "ScreenOverlap"              "0"
    Option "NoTV"                       "yes"     
    Option "TVStandard"                 "NTSC-M"     
    Option "TVHSizeAdj"                 "0"     
    Option "TVVSizeAdj"                 "0"     
    Option "TVHPosAdj"                  "0"     
    Option "TVVPosAdj"                  "0"     
    Option "TVHStartAdj"                "0"     
    Option "TVColorAdj"                 "0"     
    Option "GammaCorrectionI"           "0x00000000"
    Option "GammaCorrectionII"          "0x00000000"
    Option "Capabilities"               "0x00000000"
    Option "VideoOverlay"               "on"
    Option "OpenGLOverlay"              "off"
    Option "CenterMode"                 "off"
    Option "PseudoColorVisuals"         "off"
    Option "Stereo"                     "off"
    Option "StereoSyncEnable"           "1"
    Option "FSAAScale"                  "1"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
    Option "UseFastTLS"                 "0"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "yes"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"    # vendor=1002, device=514c
    Screen 0
EndSection
Section "Screen"
    Identifier  "Screen0"
    Device      "ATI Graphics Adapter"
    Monitor     "Monitor0"
    DefaultDepth 24
    #Option "backingstore"
    Subsection "Display"
        Depth       24
        Modes       "1024x768"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
    EndSubsection
EndSection
Section "ServerLayout"
    Identifier  "Server Layout"
    Screen "Screen0"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

_________________
-Josh
Back to top
View user's profile Send private message
Paranoid
Apprentice
Apprentice


Joined: 07 Jan 2004
Posts: 290
Location: Portland, ME

PostPosted: Sun Apr 18, 2004 10:55 pm    Post subject: Reply with quote

Good god, someone other than me is using an 8500 8O . Hmm, what version of ati-drivers are you using? What does fglrxinfo say? Did you do opengl-update ati? Are you running xorg-x11 or xfree? What are the errors you get in your x log file?
_________________
A paranoid is someone who knows a little of what's going on.
William S. Burroughs
Back to top
View user's profile Send private message
josh
Guru
Guru


Joined: 05 Feb 2003
Posts: 473
Location: Milky Way: Solar System: Earth: North America: USA: NY: Buffalo

PostPosted: Mon Apr 19, 2004 12:27 am    Post subject: Reply with quote

Allright, sounds like you know my predicament. here goes...

ati-drivers: ati-drivers-3.2.8-r1

fglrxinfo:
Code:
display: :0.0  screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4


Yes, I did do "opengl-update ati". It said that things were kosher.

xfree86

Here's the only warnings I get in my X log. What can you make out of it?:

Code:
(II) fglrx(0): [drm] drmOpen failed
(EE) fglrx(0): DRIScreenInit failed!
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *


Here's the whole X log (I didn't want to post it)
http://lotuseaters.no-ip.com/~elfpower/XFree86.0.log

Here's my Kernel stuff for extra Measure. I'm pretty sure I have everything; AGP as well as my AGP chipset. VIA is my chipset I get from an lspci
Code:
<*> /dev/agpgart (AGP Support)
  x x                                           < >   ALI chipset support 
  x x                                           <*>   ATI chipset support 
  x x                                           < >   AMD Irongate, 761, and 762 chipset support 
  x x                                           < >   AMD Opteron/Athlon64 on-CPU GART support
  x x                                           <*>   Intel 440LX/BX/GX, I8xx and E7x05 chipset support
  x x                                           < >   NVIDIA nForce/nForce2 chipset support       
  x x                                           < >   SiS chipset support                                         
  x x                                           < >   Serverworks LE/HE chipset support                 
  x x                                           <*>   VIA chipset support                                           
  x x                                           [*] Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
  x x                                           < >   3dfx Banshee/Voodoo3+ 
  x x                                           < >   3dlabs GMX 2000   
  x x                                           < >   ATI Rage 128         
  x x                                           <M>   ATI Radeon         
  x x                                           < >   Intel I810 
  x x                                           <*>   Intel 830M, 845G, 852GM, 855GM, 865G 
  x x                                           < >   Matrox g200/g400                 
  x x                                           < >   SiS video cards


I guess I don't need the DRM. But I figured it wouldn't hurt. At worst the ati-drivers would overwrite the kernel modules.
_________________
-Josh
Back to top
View user's profile Send private message
Paranoid
Apprentice
Apprentice


Joined: 07 Jan 2004
Posts: 290
Location: Portland, ME

PostPosted: Mon Apr 19, 2004 7:31 am    Post subject: Reply with quote

K, you should remove the drm support in the kernel & you should be good to go.
_________________
A paranoid is someone who knows a little of what's going on.
William S. Burroughs
Back to top
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Mon Apr 19, 2004 11:13 am    Post subject: Reply with quote

i have another tricky one.. ATI aswell.. its on a laptop.. rather slow and crappy and uses a mach64 chip (ATI Technologies Inc Rage Mobility P/M AGP 2x). i compiled myself a bleeding edge mach64 driver from dri.sf.net on a xfree 4.3.99 thingie. the driver is supposed to support dri and xv. xv is working (yay!). glxinfo reports direct rendering: no. the following is reported in my x logfile:
Quote:
(==) ATI(0): Write-combining range (0x81000000,0x800000)
(II) ATI(0): [drm] SAREA 2200+1208: 3408
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenByBusid: drmOpenMinor returns 5
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) ATI(0): [drm] loaded kernel module for "mach64" driver
(II) ATI(0): [drm] DRM interface version 1.2
(II) ATI(0): [drm] created "mach64" driver at busid "pci:0000:01:00.0"
(II) ATI(0): [drm] added 8192 byte SAREA at 0xd0863000
(II) ATI(0): [drm] mapped SAREA 0xd0863000 to 0x40a68000
(II) ATI(0): [drm] framebuffer handle = 0x81000000
(II) ATI(0): [drm] added 1 reserved context for kernel
(II) ATI(0): [drm] Will request pseudo-DMA (MMIO) mode
(==) ATI(0): [agp] Using AGP 2x Mode
(==) ATI(0): [agp] Using 8 MB AGP aperture
(II) ATI(0): [agp] Mode 0x20000203 [AGP 0x10b9/0x1621; Card 0x1002/0x4c4d]
(II) ATI(0): [agp] 8192 kB allocated with handle 0x00000001
(II) ATI(0): [agp] Using 16 kB for DMA descriptor ring
(==) ATI(0): [agp] Using 2 MB for DMA buffers
(II) ATI(0): [agp] Using 6016 kB for AGP textures
(II) ATI(0): [agp] ring handle = 0xe0000000
(II) ATI(0): [agp] Ring mapped at 0x40a6a000
(II) ATI(0): [agp] vertex buffers handle = 0xe0004000
(II) ATI(0): [agp] Vertex buffers mapped at 0x40a6e000
(II) ATI(0): [agp] AGP texture region handle = 0xe0204000
(II) ATI(0): [agp] AGP Texture region mapped at 0x40c6e000
(II) ATI(0): [drm] register handle = 0x80600000
(II) ATI(0): [dri] Visual configs initialized
(II) ATI(0): [dri] Block 0 base at 0x80600400
(II) ATI(0): Memory manager initialized to (0,0) (1024,2047)
(II) ATI(0): Largest offscreen area available: 1024 x 1279
(II) ATI(0): Will use 511 kB of offscreen memory for XAA
(II) ATI(0): Will use back buffer at offset 0x37f000
(II) ATI(0): Will use depth buffer at offset 0x67f000
(II) ATI(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
8x8 mono pattern filled rectangles
Indirect CPU to Screen color expansion
Solid Lines
Offscreen Pixmaps
Setting up tile and stipple cache:
32 128x128 slots
10 256x256 slots
(==) ATI(0): Backing store disabled
(==) ATI(0): Silken mouse enabled
(II) ATI(0): X context handle = 0x00000001
(II) ATI(0): [drm] installed DRM signal handler
(II) ATI(0): [DRI] installation complete
(II) ATI(0): [drm] Added 128 16384 byte DMA buffers
(II) ATI(0): [drm] Mapped 128 DMA buffers at 0x4124e000
(II) ATI(0): [drm] Installed interrupt handler, using IRQ 11
(II) ATI(0): Direct rendering enabled


i cant really see an error.. whats wrong? it is supposed to work? :-)
Back to top
View user's profile Send private message
josh
Guru
Guru


Joined: 05 Feb 2003
Posts: 473
Location: Milky Way: Solar System: Earth: North America: USA: NY: Buffalo

PostPosted: Tue Apr 20, 2004 2:09 pm    Post subject: Reply with quote

Thanks man, that did the trick!
_________________
-Josh
Back to top
View user's profile Send private message
Paranoid
Apprentice
Apprentice


Joined: 07 Jan 2004
Posts: 290
Location: Portland, ME

PostPosted: Tue Apr 20, 2004 6:40 pm    Post subject: Reply with quote

Glad I could help.
_________________
A paranoid is someone who knows a little of what's going on.
William S. Burroughs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum