Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X- 3D support not working
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
antivoid
Guest





PostPosted: Sat May 04, 2002 8:01 am    Post subject: X- 3D support not working Reply with quote

When I used redhat, 3D accelaration worked fine. However, on my fresh gentoo install it's not working. When I try to run xscreesaver progs that use 3D accelaration, I get the error "Xlib: extension "GLX" missing on display ":0.0"."
What's going on here? Did 3D support not get compiled into X? Any suggestions on how to get this working? (BTW, I'm using a Voodoo 3 card, if that helps any)
Back to top
tooobi
n00b
n00b


Joined: 25 Apr 2002
Posts: 11

PostPosted: Sat May 04, 2002 1:39 pm    Post subject: Re: X- 3D support not working Reply with quote

antivoid wrote:
...
"Xlib: extension "GLX" missing on display ":0.0"."
...

do you have the glx module loaded?

my 'module' section of XF86Config looks like this:

Section "Module"
Load "ddc"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "pex5"
Load "record"
Load "xie"
Load "bitmap"
Load "freetype"
Load "speedo"
Load "type1"
Load "vbe"
Load "int10"
EndSection

i'm sure there are many that will not be used in your (and my) setup, but if there is no glx entry, opengl wont work well.

~tooobi
Back to top
View user's profile Send private message
antivoid
Guest





PostPosted: Sat May 04, 2002 6:12 pm    Post subject: Reply with quote

It turns out the line to load glx was commented out, but I fixed that. I tried to run the 3d screensavers, however they ran very slow. Its obvious that they're using a software renderer. I've eventried adding stuff like: GLcore, dbe, and dri and chainging the driver in my video section from vga to tdfx. No good. They're still not using acceleration. Help!
Back to top
squanto
Guru
Guru


Joined: 20 Apr 2002
Posts: 524
Location: Rochester, NY, USA

PostPosted: Sat May 04, 2002 6:57 pm    Post subject: Reply with quote

When you compiled your kde / gnome system you probably didn't have opengl in your use vars, this might be why they don't run with hardware rendering.
maybe re emerge your screensavers with opengl in your use vars?

-Andrew
Back to top
View user's profile Send private message
Guest






PostPosted: Sat May 04, 2002 11:34 pm    Post subject: Re: X- 3D support not working Reply with quote

Check if you have tdfx_dri.so in /usr/X11R6/lib/modules/,
if not add voodoo3 (for glide if you have voodoo3) and 3dfx (for xfree) to your USE in make.conf and recompile glide and xfree and you should be all set.
Back to top
Mr. Atoz
Tux's lil' helper
Tux's lil' helper


Joined: 06 May 2002
Posts: 84
Location: Colorado

PostPosted: Tue May 07, 2002 2:32 am    Post subject: Also no DRI with an i810 chipset Reply with quote

I have the same problem and it has me stumped. DRI does work fine on the same box with RedHat, similar to antivoid.

I believe I have all the right modules and XFree86 settings. However, I seem to have a problem with libvbe. Can someone confirm that this is breaking my DRI and perhaps suggest a resolution? I did a standard "emerge xfree86" to install. Do I need to recompile with a "vbe" in the USE flags??

antivoid, do you have a similar "vbe" error in your XFree86.0.log file?

XF86Config:
Code:

Section "ServerLayout"         
        Identifier     "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection                     
                               
Section "Files"                 
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection                     
                               
Section "Module"               
        Load  "extmod"         
        Load  "xie"             
        Load  "pex5"           
        Load  "dri"             
        Load  "dbe"             
        Load  "record"         
        Load  "xtrap"           
        Load  "glx"             
        Load  "speedo"         
        Load  "type1"           
EndSection                     
                               
Section "InputDevice"           
        Identifier  "Keyboard0"
        Driver      "keyboard" 
EndSection                     
                               
Section "InputDevice"           
        Identifier  "Mouse0"   
        Driver      "mouse"     
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/mouse"
        Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
        #DisplaySize      320   240     # mm
        Identifier   "Monitor0"
        VendorName   "OQI"
        ModelName    "Q71-4"
        Option      "DPMS"
        VertRefresh  50-160
        HorizSync    30-70
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"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "CacheLines"                # <i>
        #Option     "Dac6Bit"                   # [<bool>]
        Option     "DRI"                        # [<bool>]
        #Option     "NoDDC"                     # [<bool>]
        #Option     "XvMCSurfaces"              # <i>
        Option      "NoInt10"
        Identifier  "Card0"
        Driver      "i810"
        VendorName  "Intel"
        BoardName   "i815"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 16
        SubSection "Display"
                Depth     1
        EndSubSection
        SubSection "Display"
                Depth     4
        EndSubSection
        SubSection "Display"
                Depth     8
        EndSubSection
        SubSection "Display"
                Depth     15
        EndSubSection
        SubSection "Display"
                Depth     16
                Modes     "1280x1024" "1600x1200"
        EndSubSection
        SubSection "Display"
                Depth     24
                Modes     "1280x1024" "1600x1200"
        EndSubSection
EndSection


lsmod output:
Code:

i810                   70168   0
agpgart                19904   6


Relevant sections from /var/log/XFree86.0.log:
Code:

drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmGetBusid returned ''
(II) I810(0): [drm] created "i810" driver at busid "PCI:0:2:0"
(II) I810(0): [drm] added 8192 byte SAREA at 0xd8912000
(II) I810(0): [drm] mapped SAREA 0xd8912000 to 0x40017000
(II) I810(0): [drm] framebuffer handle = 0x44000000
(II) I810(0): [drm] added 1 reserved context for kernel
(II) I810(0): [drm] Registers = 0x40400000
(II) I810(0): [agp] dcacheHandle : 0xd8d97000
(II) I810(0): [dri] Backsize is larger then 4 meg
(II) I810(0): [agp] GART: no dcache memory found
(II) I810(0): [agp] Bound backbuffer memory
(II) I810(0): [agp] Bound depthbuffer memory
(EE) I810(0): [agp] drmAgpAlloc failed
(EE) I810(0): [drm] failed to remove DRM signal handler
(II) I810(0): [drm] removed 1 reserved context for kernel
DRIUnlock called when not locked
(II) I810(0): [drm] unmapping 8192 bytes of SAREA 0xd8912000 at 0x40017000
(WW) System lacks support for changing MTRRs
(II) I810(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
(II) I810(0): Setting dot clock to 108.0 MHz [ 0x10 0x2 0x20 ] [ 18 4 2 ]
(II) I810(0): chose watermark 0x22210000: (tab.freq 108.0)
(II) I810(0): Adding 384 scanlines for pixmap caching
(II) I810(0): Allocated Scratch Memory
(II) I810(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 Horizontal and Vertical Lines
        Offscreen Pixmaps
        Setting up tile and stipple cache:
                32 128x128 slots
                16 256x256 slots
(==) I810(0): Backing store disabled
(==) I810(0): Silken mouse enabled
(**) Option "dpms"
(**) I810(0): DPMS enabled
(==) I810(0): Direct rendering disabled
Symbol xf86InterpretEDID from module /usr/X11R6/lib/modules/libvbe.a is unresolved!


Code:

(II) I810(0): this driver cannot do DDC without VBE


Anyone have any thoughts or articles they can point me (us) to?

ThankS :)
_________________
---Atoz
Back to top
View user's profile Send private message
antivoid
n00b
n00b


Joined: 08 May 2002
Posts: 2

PostPosted: Wed May 08, 2002 4:25 pm    Post subject: Reply with quote

Okay. This thing still isn't working. I added 3dfx and voodoo3 to my USE var and recompiled X. It now has a lib/modules/dri/tdfx_dri.so present. However when I try to run a GL xscreensaver module, it runs really slow and I get these two messages to console:
libGL error: failed to open DRM: operation not permitted
libGL error: reveting to (slow) inderect rendering
I have no idea what's going on here. And how do I even check if tdfx_dri is loaded? Also, Mr. Atoz, I don't have any error pretaining to vbe in my log.
Back to top
View user's profile Send private message
antivoid
n00b
n00b


Joined: 08 May 2002
Posts: 2

PostPosted: Wed May 08, 2002 6:49 pm    Post subject: Reply with quote

I finally got it working. I did a google search on that error and I found this to add to my XF86Config:
Section "DRI"
Mode 0666
EndSection

Hope this also helps anyone else who is having troubles with 3d.
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