From: Ashley <as...@dn...> - 2002-01-17 03:56:01
|
I solved my problem with X using software acceleration instead of hardware for my Matrox G450 by upgrading to SuSE 7.3. This distro has taken great care to make this all just work. Basically, all I did was to set SCRIPT_3D="switch2xf86_glx" in /etc/rc.config and then run SuSEconfig and sax2. Here are the highlights: from /etc/rc.config: # # This variable specifies the script to execute to create the necessary # symbolic links to the correct OpenGL libraries/extensions. These scripts # are located in /usr/X11R6/bin. The possible values are: # # "no" : Do not execute any script! # "switch2mesasoft" : Mesa software emulation (works for all graphic boards) # "switch2mesa3dfx" : Mesa/Glide # "switch2glx" : XFree86 3.x/Utah-GLX # "switch2nvidia_glx" : XFree86 4.x/NVIDIA_GLX (NVIDIA_GLX/NVIDIA_kernel) # "switch2xf86_glx" : XFree86 4.x/DRI # # You can find out which script you have to use for your graphic board with # the program "3Ddiag". # SCRIPT_3D="switch2xf86_glx" This is the meat and potatos of what /usr/X11R6/bin/switch2xf86_glx does: ( cd $DIR/../../lib ln -sf GL/libGL.so.1.2.xf86_glx libGL.so.1 ln -sf libGL.so.1 libMesaGL.so.3 rm -f libGLcore.so.1 /sbin/lspci -n|grep -q -i "121a:000[35]" && \ ln -sf glide/libglide3.so.3.voodoo3 libglide3.so.3 /sbin/lspci -n|grep -q -i "121a:0009" && \ ln -sf glide/libglide3.so.3.voodoo45 libglide3.so.3 ) ( cd $DIR/../lib/modules/extensions ln -sf libGLcore.a.xf86_glx libGLcore.a ln -sf libglx.a.xf86_glx libglx.a rm -f libglx.so ) the results: ishi:~ # ll /usr/lib/*GL* -rw-r--r-- 1 root root 567574 Sep 23 12:07 /usr/lib/libGL.a lrwxrwxrwx 1 root root 24 Jan 11 19:03 /usr/lib/libGL.so -> GL/ libGL.so.1.2.xf86_glx lrwxrwxrwx 1 root root 24 Jan 12 17:23 /usr/lib/libGL.so.1 -> G L/libGL.so.1.2.xf86_glx -rw-r--r-- 1 root root 688700 Sep 23 12:07 /usr/lib/libGLU.a lrwxrwxrwx 1 root root 13 Jan 11 19:04 /usr/lib/libGLU.so -> li bGLU.so.1.3 lrwxrwxrwx 1 root root 13 Jan 11 19:04 /usr/lib/libGLU.so.1 -> libGLU.so.1.3 -rwxr-xr-x 1 root root 631566 Sep 23 12:12 /usr/lib/libGLU.so.1.3 lrwxrwxrwx 1 root root 7 Jan 11 19:03 /usr/lib/libMesaGL.a -> libGL.a lrwxrwxrwx 1 root root 8 Jan 11 19:03 /usr/lib/libMesaGL.so -> libGL.so lrwxrwxrwx 1 root root 10 Jan 12 17:23 /usr/lib/libMesaGL.so.3 -> libGL.so.1 lrwxrwxrwx 1 root root 9 Jan 11 19:04 /usr/lib/libMesaGLU.so - > libGLU.so lrwxrwxrwx 1 root root 11 Jan 11 19:04 /usr/lib/libMesaGLU.so.3 -> libGLU.so.1 ishi:~ # ll /usr/X11R6/lib/modules/extensions/ total 3224 drwxr-xr-x 2 root root 4096 Jan 12 17:23 . drwxr-xr-x 9 root root 4096 Jan 11 19:03 .. lrwxrwxrwx 1 root root 20 Jan 12 17:23 libGLcore.a -> libGLcore .a.xf86_glx -rwxr-xr-x 1 root root 1923954 Sep 23 12:08 libGLcore.a.xf86_glx -rwxr-xr-x 1 root root 16464 Sep 23 12:08 libdbe.a -rwxr-xr-x 1 root root 28956 Sep 23 12:08 libdri.a -rwxr-xr-x 1 root root 154870 Sep 23 12:08 libextmod.a lrwxrwxrwx 1 root root 17 Jan 12 17:23 libglx.a -> libglx.a.xf8 6_glx -rwxr-xr-x 1 root root 403980 Sep 23 12:08 libglx.a.xf86_glx -rwxr-xr-x 1 root root 24432 Sep 23 12:08 librecord.a -rwxr-xr-x 1 root root 708728 Sep 23 12:08 libxie.a 3Ddiag run with the --dri option will confirm that /etc/rc.config contains SCRIPT_3D="switch2xf86_glx" and that the various links created by /usr/X11R6/bin/switch2xf86_glx are all intact This is the output of 3Ddiag: ishi:~ # 3Ddiag --help 3Ddiag version 0.369 Usage: 3Ddiag [OPTION] --devel verify full OpenGL Development configuration --dri verify 'DRI/XFree86 4.x' configuration --help, -h display this help and exit --ignoredb search for possible 3D configurations of might be untested/unsuccessful tested hardware --mesaglide verify 'Mesa/Glide' configuration --mesasoft verify 'Mesa Software Rendering' configuration --nvidia_glx verify 'nVidia GLX/XFree86 4.x' configuration --runtime verify GLU/glut Runtime configuration --utah-glx verify 'Utah-GLX/XFree86 3.3' configuration ishi:~ # 3Ddiag --dri 3Ddiag version 0.369 Verifying DRI/XFree86 4.x configuration Using 3Ddiag.dri ************************************************************ Verifying 3D configuration based on XFree86 4 for 3D board "Matrox G200/G400/G450 (102b@0525)": Tests for package "xf86_glx": package ... done. package files ... done. Tests for correct OpenGL libraries/GLX extensions: Symbolic Links ... done. rc.config (SCRIPT_3D=switch2xf86_glx) ... done. Test for correct XFree86 version ... done. Tests for XFree86 configuration: Config File /etc/X11/XF86Config ... done. Driver ... done. Color Depth ... done. Extensions ... done. Options ... done. ----------------------- NOTE ----------------------------------- If 3D hardware OpenGL configuration is not stable enough, you should switch back to 'Mesa Software Rendering'. You can verify this configuration with the command "3Ddiag --mesasoft". ----------------------- NOTE ----------------------------------- Checking GLU/glut runtime configuration: GLU ... done (package xf86glu) glut ... done (package mesaglut) On Fri, Jan 11, 2002 at 10:12:17AM -0800, ashley wrote: > > I installed binaries mga_drv.o, mga_hal_drv.o, mga_dri.o from mga-133_143.tgz > and mgapdesk from mgapdesk-1_00-7beta_src.tgz. But it is still doing software > rendering and glxgears is still about 28 fps. > > This is on a 500MHz celeron with 128MG ram. > > By the way, what does it mean about agp 1x or 2x or 4x? What is that about? > > > > some perhaps useful info: > > bash-2.05# lsmod > Module Size Used by > mga 98880 1 > agpgart 29248 3 (autoclean) > > > bash-2.05# ldd `which glxinfo` > libGLU.so.1 => /usr/lib/libGLU.so.1 (0x40030000) > libGL.so.1 => /usr/lib/libGL.so.1 (0x400b4000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4030c000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4031a000) > libpthread.so.0 => /lib/libpthread.so.0 (0x403fd000) > libm.so.6 => /lib/libm.so.6 (0x40413000) > libc.so.6 => /lib/libc.so.6 (0x40432000) > libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4054f000) > libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40559000) > libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40571000) > libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40588000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40590000) > > from /var/.og/XFree86.o.log: > (--) MGA(0): Virtual size is 1280x1024 (pitch 1280) > . > . > . > (II) MGA(0): [drm] bpp: 16 depth: 16 > . > . > . > (==) MGA(0): Using AGP 1x mode > . > . > . > (**) MGA(0): VideoRAM: 32768 kByte > . > . > . > (II) MGA(0): [drm] installed DRM signal handler > (II) MGA(0): [DRI] installation complete > (II) MGA(0): [drm] Mapped 128 DMA buffers > (==) MGA(0): Direct rendering enabled > > > > > > > > bash-2.05# cat /proc/dri/0/bufs > o size count free segs pages kB > > 16 65536 128 0 0 0 0 > > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > bash-2.05# cat /proc/dri/0/queues > ctx/flags use fin blk/rw/rwf wait flushed queued locks > > bash-2.05# cat /proc/dri/0/vm > slot offset size type flags address mtrr > > 0 0xca859000 0x00001000 SHM 0x0e 0xca859000 none > 1 0xe1000000 0x00004000 REG 0x02 0xca854000 none > 2 0xe4108000 0x00800000 AGP 0x00 0xca965000 2 > 3 0xe4008000 0x00100000 AGP 0x02 0xca864000 2 > 4 0xe4000000 0x00008000 AGP 0x02 0xca85b000 2 > 5 0xe2000000 0x02000000 FB 0x00 0xc884f000 1 > 6 0xc884d000 0x00001000 SHM 0x20 0xc884d000 none > bash-2.05# cat /proc/dri/0/vma > vma use count: 6, high_memory = c7ffc000, 0x07ffc000 > > 10276 0x432ff000-0x43aff000 rw-sli 0xe4108000 pwubca-kl > > 10276 0x4002c000-0x4002d000 rw-sl- 0xca859000 pwubca-kl > > 10276 0x42aff000-0x432ff000 rw-sli 0xe4108000 pwubca-kl > > 10276 0x429ff000-0x42aff000 rw-sli 0xe4008000 pwubca-kl > > 10276 0x429f7000-0x429ff000 rw-sli 0xe4000000 pwubca-kl > > 10276 0x4002b000-0x4002c000 rw-sl- 0xc884d000 pwubca-kl > bash-2.05# cat /proc/dri/0/mem > total counts | outstanding > type alloc freed fail bytes freed | allocs bytes > > system 0 0 0 126576 kB | > locked 0 0 0 0 kB | > > dmabufs 0 0 0 0 0 | 0 0 > sareas 0 0 0 0 0 | 0 0 > driver 538 405 0 26504 22164 | 133 4340 > magic 0 0 0 0 0 | 0 0 > ioctltab 0 0 0 0 0 | 0 0 > maplist 68 52 0 1140 868 | 16 272 > vmalist 72 66 0 864 792 | 6 72 > buflist 520 390 0 47104 35328 | 130 11776 > seglist 0 0 0 0 0 | 0 0 > pagelist 0 0 0 0 0 | 0 0 > files 19 18 0 760 720 | 1 40 > queues 0 0 0 0 0 | 0 0 > commands 0 0 0 0 0 | 0 0 > mappings 20 15 0 172163072 129122304 | 5 43040768 > buflists 0 0 0 0 0 | 0 0 > agplist 5 3 0 164 72 | 2 92 > totalagp 4 3 0 50331648 37748736 | 1 12582912 > boundagp 4 3 0 50331648 37748736 | 1 12582912 > ctxbitmap 1 0 0 4096 0 | 1 4096 > stub 1 0 0 192 0 | 1 192 > > > On Thu, Jan 10, 2002 at 05:39:19PM -0500, olliecat wrote: > > Ashley wrote: > > > > > > hi list, > > > > > > I'm new and there is much I don't know about graphics. I got dri working > > > for my G450, but rendering is very slow. > > > XF86 4.1.0 > > > suse 7.2 > > > kernel 2.4.16 > > > > > > glxgears at 680x440 runs at 25-28 fps and half that if I load the system at all > > > > > > I saw in the archives that some of you got G450 to work at speed, but had > > > crashes. > > > > > > -- > > > -ashley > > > > > > One of these days I'm going to completely organize my life. > > > > > > I have a G450 too and was having the same problem. Did you pick up the > > latest drivers and mgapdesk from Matrox? Give that a shot and let me > > know how it goes. > > > > Tod > > -- > -ashley > > One of these days I'm going to completely organize my life. > > > _______________________________________________ > Dri-users mailing list > Dri...@li... > https://lists.sourceforge.net/lists/listinfo/dri-users -- -ashley One of these days I'm going to completely organize my life. |