From: Tom E. <wi...@ge...> - 2001-08-07 21:04:07
|
Thanks for the suggestions everyone. It's still not working, but here's what I've found: 1. I doublechecked and the tdfx.o module in /lib/modules/2.4.0/kernel/drivers/char/drm is the one I downloaded from http://www.xfree86.org/~alanh/, not the kernel module. The kernel module is only located in the /usr/src/linux tree. I don't need to replace these with the ones out of /usr/X11/ , do I? 2. I am in 16bpp. 3. I have already done a "make uninstall" of the Mesa installation I had before, and all the libraries I see with 'ldconfig -v | grep "GL"' are fresh. 4. Below I've included the output of glxinfo with LIBGL_DEBUG="verbose". There is indeed an error at the beginning, but I don't know how to fix it. 5. I've downloaded a patch to 2.4.7 kernel and will try upgrading if nothing else. 6. I forgot to mention, but it is an AGP card. Is agp support in the kernel still unnecessary? And would it interfere if it is compiled in right now? Any more suggestions would be very much appreciated. Tom ===================================================================== Output of glxinfo with LIBGL_DEBUG="verbose" ===================================================================== /home/englet% setenv LIBGL_DEBUG verbose /home/englet% glxinfo name of display: :0.0 libGL: XF86DRIGetClientDriverName: 1.0.0 tdfx libGL: trying /usr/X11R6/lib/modules/dri/tdfx_dri.so libGL error: dlopen failed: /usr/X11R6/lib/modules/dri/tdfx_dri.so: undefined symbol: grDRIOpen libGL: trying /usr/X11R6/lib/modules/dri/tdfx_dri.so libGL error: dlopen failed: /usr/X11R6/lib/modules/dri/tdfx_dri.so: undefined symbol: grDRIOpen display: :0 screen: 0 direct rendering: No server glx vendor string: SGI server glx version string: 1.2 server glx extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context client glx vendor string: SGI client glx version string: 1.2 client glx extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context GLX extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context OpenGL vendor string: VA Linux Systems, Inc. OpenGL renderer string: Mesa GLX Indirect OpenGL version string: 1.2 Mesa 3.4.2 OpenGL extensions: GL_ARB_multitexture, GL_EXT_abgr, GL_EXT_blend_color, GL_EXT_blend_minmax, GL_EXT_blend_subtract glu version: 1.3 glu extensions: GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat ---------------------------------------------------------------------- 0x23 16 tc 0 16 0 r . . 5 6 5 0 0 0 0 0 0 0 0 0 0 None 0x24 16 tc 0 16 0 r . . 5 6 5 0 0 0 8 0 0 0 0 0 0 Slow ... many more lines like this ... ===================================================================== Other info: ======================== contents of modules.conf ======================== /home/englet# cat /etc/modules.conf alias char-major-107 3dfx =========== dir listing =========== /lib/modules/2.4.0/kernel/drivers/char/drm# l ./ ../ tdfx.o ============================================== results of depmod (am I doing this correctly?) ============================================== /lib/modules/2.4.0/kernel/drivers/char/drm# depmod tdfx.o tdfx.o: ============== previous email ============== I am looking for help in getting direct rendering enabled with my Voodoo3 3000. I am using 2.4.0 kernel, XFree86 4.1.0 w/16 bit color. I have glide headers installed in /usr/include/glide and /usr/include/glide3 I am using a distribution I put together using the Linux From Scratch HOWTO b2.35b, so it's hard to make any assumptions as to what packages are installed that might usually be installed in RedHat/Debian or another major distro. I upgraded to the 2.4.0 kernel and compiled it, then installed X 4.1.0 from the binaries using the Xinstall.sh script. I have followed all the setup and troubleshooting advice I can from the DRI Compilation and User Guides, but can't get direct rendering to work. glxinfo tells me there's no direct rendering (and running gl programs backs this up). When I run the glx xscreensavers fullscreen, the screen clears/flashes between each refresh if I'm in 16bps. I don't see this in 32bps or windowed modes. I'm not in a location where I can try downloading the whole kit/kaboodle from CVS and recompiling it, but my understanding is that DRI comes in the X binary packages. I have included below what I hope is more than enough information for someone to help me figure out what else I need to do in order to get 3D acceleration. Thanks very much for any help you can give me, Tom ==================== kernel configuration ==================== In "Character devices" y - /dev/agpgart (AGP Support) y - Direct Rendering Manager (XFree86 DRI support) y - 3dfx Banshee/Voodoo3+ =========== dmesg shows =========== Linux agpgart interface v0.99 (c) Jeff Hartmann agpgart: Maximum main memory to use for agp memory: 150M agpgart: unsupported bridge agpgart: no supported devices found. [drm] Initialized tdfx 1.0.0 20000928 on minor 63 ========================= messages from startx show ========================= ... (II) Loading /usr/X11R6/lib/modules/extensions/libdri.a (II) Module dri: vendor="The XFree86 Project" compiled for 4.1.0, module version = 1.0.0 (II) Loading /usr/X11R6/lib/modules/linux/libdrm.a (II) Module drm: vendor="The XFree86 Project" compiled for 4.1.0, module version = 1.0.0 ... (II) Loading /usr/X11R6/lib/modules/drivers/tdfx_drv.o (II) Module tdfx: vendor="The XFree86 Project" compiled for 4.1.0, module version = 1.0.0 ... (II) TDFX: Driver for 3dfx Banshee/Voodoo3 chipsets: 3dfx Banshee, 3dfx Voodoo3, 3dfx Voodoo5 (--) Chipset 3dfx Voodoo3 found ... (II) TDFX(0): Softbooting the board (through the int10 interface). (II) TDFX(0): Primary V_BIOS segment is: 0xc000 (II) TDFX(0): Softbooting the board succeeded. ... TDFX(0) stuff ... (II) TDFX(0): [drm] created "tdfx" driver at busid "PCI:1:0:0" (II) TDFX(0): [drm] added 4096 byte SAREA at 0xcc810000 (II) TDFX(0): [drm] mapped SAREA 0xcc810000 to 0x40015000 (II) TDFX(0): [drm] framebuffer handle = 0xfc000000 (II) TDFX(0): [drm] added 1 reserved context for kernel (II) TDFX(0): [drm] Registers = 0xf4000000 (II) TDFX(0): visual configs initialized (II) TDFX(0): Using XFree86 Acceleration Architecture (XAA) ... (II) TDFX(0): [drm] installed DRM signal handler (II) TDFX(0): [DRI] installation complete (==) TDFX(0): Direct rendering enabled ... ============== when exiting X ============== waiting for X server to shut down (II) TDFX(0): [drm] removed 1 reserved context for kernel (II) TDFX(0): [drm] unmapping 4096 bytes of SAREA 0xcc810000 at 0x40015000 ============= glxinfo shows ============= ... direct rendering: No server glx vendor string: SGI server glx version string: 1.2 server glx extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context client glx vendor string: SGI client glx version string: 1.2 client glx extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context GLX extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context OpenGL vendor string: VA Linux Systems, Inc. OpenGL renderer string: Mesa GLX Indirect OpenGL version string: 1.2 Mesa 3.4.2 OpenGL extensions: GL_ARB_multitexture, GL_EXT_abgr, GL_EXT_blend_color, GL_EXT_blend_minmax, GL_EXT_blend_subtract glu version: 1.2 Mesa 3.2 glu extensions: GL_EXT_abgr ... ================================ /usr/src/linux/drivers/char/drm/ ================================ tdfx.o, tdfx_drv.o, tdfx_context.o ========================================== /lib/modules/2.4.0/kernel/drivers/char/drm ========================================== tdfx.o (I created this directory and put it there myself) =========== lsmod shows =========== Module Size Used by If I do insmod tdfx.o before starting X... Module Size Used by tdfx 33348 1 ===================== modprobe tdfx.o shows ===================== modprobe: Can't locate module tdfx.o ================== ldd glxgears shows ================== /usr/X11/bin# ldd glxgears libGL.so.1 => /usr/lib/libGL.so.1 (0x4001c000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4007f000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4008c000) libpthread.so.0 => /lib/libpthread.so.0 (0x40162000) libm.so.6 => /lib/libm.so.6 (0x40175000) libc.so.6 => /lib/libc.so.6 (0x40193000) libdl.so.2 => /lib/libdl.so.2 (0x4027e000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) and /usr/lib/libGL.so.1 is a link to /usr/X11R6/lib/libGL.so.1 which is from the 4.1.0 installation When I run glxgears I get 60-80FPS and 100% cpu usage. When I run glx xscreensavers at fullscreen 16 bps the screen clears/flashes between each refresh. I don't see this at 32 bps, it just runs slowly. ------------------------------------------------------------ News, Opinion, Culture for Geeks -- http://www.geeklife.com |