[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: G400 vs. DRM



* Eugene Tyurin (eugene_tyurin@yahoo.com) wrote:
> 
> 
> Hello,
> 
> I'm having trouble with this strange error message from bzflag (.deb
> 1.7e2-1) and GL in general:
> 
> gene@daBox:~$ bzflag
> libGL error: failed to open DRM: Operation not permitted
> libGL error: reverting to (slow) indirect rendering
> loading fixedbr...
> loading panel...
> 
> At the same time, log file for X (.deb 4.1.0-9 ) shows:
> 
> (II) LoadModule: "drm"
> (II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
> (II) Module drm: vendor="The XFree86 Project"
>         compiled for 4.1.0.1, module version = 1.0.0
> (II) MGA(0): [drm] bpp: 32 depth: 24
> (II) MGA(0): [drm] Sarea 2200+664: 2864
> (II) MGA(0): [drm] created "mga" driver at busid "PCI:1:5:0"
> (II) MGA(0): [drm] added 4096 byte SAREA at 0xc99ef000
> (II) MGA(0): [drm] mapped SAREA 0xc99ef000 to 0x4001a000
> (II) MGA(0): [drm] framebuffer handle = 0xdc000000
> (II) MGA(0): [drm] added 1 reserved context for kernel
> (II) MGA(0): [drm] Added 128 65536 byte DMA buffers
> (II) MGA(0): [drm] Registers handle = 0xd8000000
> (II) MGA(0): [drm] Status handle = 0xca9fb000
> (II) MGA(0): [drm] installed DRM signal handler
> (II) MGA(0): [drm] Mapped 128 DMA buffers
> 
> I am running up-to-date woody with custom kernel 2.4.15-pre1:
> 
> CONFIG_DRM=y
> CONFIG_DRM_MGA=y
> 
> If I run X as '-depth 16', I don't get libGL error, but bzflag still
> uses indirect rendering.
> 
> Any suggestions on how to fix this?
> 
> --ET.


  Eugene,

 To my untrained eye this log doesn't really show if dri was loaded. I
had the same log, but dri didn't work on my G400. I apologize if I
needlesly reiterate what you've already done, but I believe that in
addition to the kernel compile options you mentioned I had the
following:

CONFIG_AGP=y
CONFIG_AGP_INTEL=y (since I have a 440BX chipset)
CONFIG_DRM=y
CONFIG_DRM_MGA=y

also, look for this part in the XFree86.log:

(==) MGA(0): Silken mouse enabled
(**) Option "dpms"
(**) MGA(0): DPMS enabled
(II) MGA(0): Using overlay video
(II) MGA(0): X context handle = 0x00000001
(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

 You really want to se the last line above. I╢m attaching my XF86Config-4 if that will help any.

 Alex.

# XF86Config-4 (XFree86 server configuration file) generated by Dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
# Edit this file with caution, and see the XF86Config manual page.
# (Type "man XF86Config" at the shell prompt.)

Section "Files"
#	FontPath	"unix/:7100"	# local font server
#	FontPath	"unix/:7110"	# xfs-xtt true type font server
	
# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/TrueType"
	FontPath	"/usr/lib/X11/fonts/cyrillic/:unscaled"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/misc/:unscaled"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

Section "ServerFlags"
EndSection

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

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"Protocol"	"Standard"
	Option		"AutoRepeat"	"500 30"
	Option		"XkbKeycodes"	"xfree86"
	Option		"XkbTypes"	"default"
	Option		"XkbCompat"	"default"
	Option		"XkbGeometry"	"pc"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"microsoft"
	Option		"XkbLayout"	"rums(basic)"
	Option		"XkbOptions"	"grp:toggle"
EndSection

Section "InputDevice"
	Identifier	"Generic Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"PS/2"
	Option		"Emulate3Buttons"	"yes"
	Option		"Emulate3Timeout"	"150"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "Device"
	Identifier	"Matrox G400"
	Driver		"mga"
	Option		"AGPMode" "2"
#	ChipSet		"mgag400"
#	BusID		"PCI:1:0:0"
EndSection

Section "Monitor"
	Identifier	"Hitachi CM 751"
	HorizSync	31-93
	VertRefresh	50-160
	Option		"DPMS"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Matrox G400"
	Monitor		"Hitachi CM 751"
	DefaultDepth	16
	SubSection "Display"
		Depth		1
		Modes		"1280x960" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1280x960" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1280x960" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1280x960" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1280x960" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x960" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		32
		Modes		"1280x960" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Generic Mouse"
EndSection

Section "DRI"
	Group "dri"
#	Mode	0666
	Mode	0660
EndSection

# end of XF86Config

Reply to: