From: John B. <jo...@wp...> - 2000-07-26 22:58:58
|
I've been trying for the better part of 4 days to get direct rendering to work and I'm not giving up till it works but for now I've hit something of a dead end, so I decided to take this opportunity to ask a couple questions to make sure I'm not missing something really obvious. What I did: got XFree86 4.0.1 compiled, installed (over 3.3.6 Debian packages), updated XF86Config for XF86 4, realized that I needed that kernel module thing got dri-snapshot for 7/23 compiled the main section. installed. attempted to compile the kernel module. That errored out so I tred to hack it into working. It compiled (mostly) cleanly but direct rendering still didn't work. got dri-snapshot for 7/25 compiled main section, compiled kernel module (i810 and tdfx failed to build but I don't have those cards so I didn't really care. One of the pograms in the 'programs/Xserver/hw/xfree86/os-support/linux/drm/kernel' directory failed to build, also (xf86drm or something like that). The module for mga compiled and loaded with no errors. I'm using kernel 2.4.0-test4 BTW. When the mga module is loaded there direct rendering still doesn't work. Everything is rendered in software. My system: K7 (Athlon) 550 Asus K7M 128 MB PC 100 SDRAM Debian GNU/Linux Unstable (up to date) Kernel 2.4.0-test4 Here's the other info: Torrent ~> export LIBGL_DEBUG=verbose Torrent ~> glxinfolibGL: trying /usr/X11R6/lib/modules/dri/mga_dri.so libGL: trying /usr/X11R6/lib/modules/dri/mga_dri.so display: :0.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_ARB_get_proc_address GLX extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context OpenGL vendor string: Precision Insight, Inc. OpenGL renderer string: Mesa GLX Indirect OpenGL version string: 1.2 Mesa 3.3 beta OpenGL extensions: GL_EXT_abgr, GL_EXT_blend_color, GL_EXT_blend_minmax, GL_EXT_blend_subtract glu version: 1.2 Mesa 3.3 beta glu extensions: GL_EXT_abgr 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 ---------------------------------------------------------------------- 0x24 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None 0x25 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None 0x26 16 tc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 None 0x27 16 tc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 None 0x28 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None 0x29 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None 0x2a 16 dc 0 16 0 r . . 5 6 5 0 0 16 0 16 16 16 0 0 0 None 0x2b 16 dc 0 16 0 r y . 5 6 5 0 0 16 0 16 16 16 0 0 0 None Torrent ~> gears libGL: trying /usr/X11R6/lib/modules/dri/mga_dri.so libGL: trying /usr/X11R6/lib/modules/dri/mga_dri.so Torrent ~> less /etc/X11/XF86Config Section "ServerLayout" Identifier "XFree86 Configured" Screen 0 "Screen0" 0 0 # Screen 1 "Screen1" RightOf "Screen0" InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" # FontPath "unix/:7101" FontPath "/usr/X11R6/lib/X11/fonts/misc/:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled" # FontPath "unix/:7101" FontPath "/usr/X11R6/lib/X11/fonts/Speedo/" FontPath "/usr/X11R6/lib/X11/fonts/Type1/" FontPath "/usr/X11R6/lib/X11/fonts/misc/" FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/" FontPath "/usr/X11R6/lib/X11/fonts/100dpi/" # For OSs that support Dynamically loaded modules, ModulePath can be # used to set a search path for the modules. This is currently supported # for Linux ELF, FreeBSD 2.x and NetBSD 1.x. The default path is shown # here. # ModulePath "/usr/X11R6/lib/modules" FontPath "/usr/share/fonts/truetype/" FontPath "/usr/X11R6/lib/X11/fonts/freefont/" FontPath "/usr/X11R6/lib/X11/fonts/sharefont/" EndSection Section "Module" Load "pex5" Load "glx" Load "dri" Load "GLcore" Load "record" Load "extmod" # Option "omit xfree86-dga" Load "type1" Load "freetype" Load "dbe" Load "xie" EndSection # PI- set DRI device permissions Section "DRI" Mode 0666 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" Identifier "Monitor0" VendorName "Seanix" ModelName "15 inch Low Radiation" HorizSync 31.5 - 64.3 VertRefresh 50 - 120 ModeLine "1280x1024" 110 1280 1328 1512 1712 1024 1025 1028 10 54 ModeLine "1024x768" 85 1024 1032 1152 1360 768 784 787 82 3 ModeLine "800x600" 69.65 800 864 928 1088 600 604 610 64 0 -HSync -VSync ModeLine "640x480" 36 640 696 752 832 480 481 484 50 9 -HSync -VSync EndSection Section "Monitor" Identifier "Monitor1" VendorName "Monitor Vendor" ModelName "Monitor Model" HorizSync 63.34 VertRefresh 60 ModeLine "1280x1024" 108.181 1280 1324 1508 1708 1024 1027 1030 10 56 -hsync -vsync EndSection Section "Device" Identifier "Card0" Driver "mga" VendorName "Matrox" BoardName "MGA G400 AGP" BusID "PCI:1:5:0" VideoRam 32768 EndSection Section "Device" ### Available Driver options are:- #Option "hibit_high" #Option "hibit_low" #Option "SWcursor" #Option "HWcursor" #Option "pci_burst" #Option "slow_dram" #Option "med_dram" #Option "fast_dram" #Option "w32_interleave" Option "NoAccel" #Option "NoClockchip" #Option "Linear" #Option "ShowCache" #Option "Legend" #Option "PciRetry" #Option "SetMClk" Identifier "Card1" Driver "tseng" VendorName "Tseng Labs" BoardName "ET6000/6100" BusID "PCI:0:13:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 16 SubSection "Display" Depth 1 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 4 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 8 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 15 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 16 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 24 Modes "1280x1024" "1024x768" "800x600" "640x480" EndSubSection EndSection Section "Screen" Identifier "Screen1" Device "Card1" Monitor "Monitor1" DefaultDepth 8 SubSection "Display" Depth 1 Modes "1280x1024" EndSubSection SubSection "Display" Depth 4 Modes "1280x1024" EndSubSection SubSection "Display" Depth 8 Modes "1280x1024" EndSubSection SubSection "Display" Depth 15 Modes "1280x1024" EndSubSection SubSection "Display" Depth 16 Modes "1280x1024" EndSubSection SubSection "Display" Depth 24 Modes "1280x1024" EndSubSection EndSection Section "DRI" EndSection Torrent ~> cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 6 model : 1 model name : AMD-K7(tm) Processor stepping : 2 cpu MHz : 553.900871 cache size : 512 KB fdiv_bug : no hlt_bug : no sep_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat mmxext mmx 3dnowext 3dnow bogomips : 1104.28 I have a second video card in the system but it was not enable in XF86Config for any of the time that I was trying to DRI to work. My system looks like this: AGP: Matrox MGA400 32MB video card PCI1: Tseng 6000 video card PCI2: WinTV Go! TV card PCI3: Dlink 530TX+ (RealTek 8139 chipset) PCI4: AudioPCI ensonic es1371 ISA: Generic 33.6 PNP modem Also, there are some very interesting side effects of using the mga module (none of those include working direct rendering :^( ): There seems to be an interesting issue with pixmap caching (I think). In WindowMaker the popup menus that should be pixmapped are displayed with pixmaps from other parts of the screen. Also, the same thing happens to another gtk+ app (snes9express, an snes9x launcher). If you need more info just tell me. -John Bloom -- Bad things happen when geeks get bored. Keep emotionally active. Cater to your favorite neurosis. -----BEGIN GEEK CODE BLOCK----- GCS d- s++: a---- C+++ UL++++ P L+++ E- W++ N o? K++ !w O? M- V? PS+ PE Y+ PGP- t+ S X+ R+ tv? b+ Dl+ D G e* h! !r y ------END GEEK CODE BLOCK------ Check out the geek code at www.geekcode.com |