Mesa with dri on intel - what's going on ?

Pavel Troller patrol at sinus.cz
Tue Apr 17 22:18:44 PDT 2007


Hi!

> Try to use the option Legacy3d on xorg conf, on the intel device section...
I did it.
- When it is set to True, it works as without it
- When it is set to False, the performance is higher (glxgears with default
window size runs at about 1350 fps with Legacy3D and about 1750 without it),
but without Legacy3D the system becomes very unstable - a bit of playing with
OpenGL and a hard system freeze is almost sure. Of course nothing is logged -
it's really a HARD freeze.
> 
> What driver are you using now, I think i915tex.... I'm right?
I think too, but I don't know for sure. I don't specify it in any config
file, it selects the driver automatically. I have both the drivers in mesa
driver directory:
root at arcus:/opt64/mesa/lib/X11/modules/dri# l
total 31276
-rwxr-xr-x 1 root root 2709725 Apr 16 05:08 i915_dri.so
-rwxr-xr-x 1 root root 2714448 Apr 16 05:08 i915tex_dri.so
...

> Perhaps if you have time try to collect some additional and technical
> informations (xorg.conf, xorg log, dmesg...for example) about your
> problems, so mesa and xorg folks can fix bugs if there are....
> 
> Bye!
dmesg shows nothing important, just this:
...
[drm] Initialized drm 1.1.0 20060810
PCI: Setting latency timer of device 0000:00:02.0 to 64
[drm] Initialized i915 1.9.0 20070209 on minor 0
[drm] Used old pci detect: framebuffer loaded

I'm appending my xorg.conf and Xorg.0.log (with Legacy3D=True).
I've made a video showing torcs running. The problems are nicely visible so
the OpenGL guys may easily determine, what's wrong. Wrong colors as well as
visibility problems (look at the wheels) are there. You can download it 
at http://sinus.cz/~patrol/torcs-on-intel-opengl.mp4 .

With regards,
         Pavel Troller

> 
> 2007/4/16, Pavel Troller <patrol at sinus.cz>:
> >Hi!
> >  I'm running the a combo of X.org, Mesa and xf86-video-intel from git 
> >  master
> >on a x86_64 system with i945 video chipset. In mesa, I'm building the
> >linux-dri-x86-64 target (and then separately linux-dri-x86 target to get
> >the 32bit compatibility libs).
> >  I was trying some OpenGL apps, but I'm experiencing many problems.
> >  For example, I've built "torcs" (3D car racing game) to test. The game 
> >  runs,
> >but the accelerated display is wrong. It has totally messed up colors, some
> >scenes are almost black (may be related to the colors problem), and the
> >rendering is also wrong, especially visibility (I can see parts of the cars
> >like wheels or the driver, which should not be visible because they have 
> >to be
> >obstructed by the chassis or other parts). Parts of the cars are 
> >flickering,
> >hiding and then reappearing.
> >  32bit build of the game is producing absolutely the same display.
> >  The same problem is shown in much more simple apps, like some OpenGL 
> >  screen
> >savers. The "Chess" saver has also visibility problems (pieces in the back 
> >are
> >rendered over the ones in front), as well as the classical Morph3D.
> >  However, glxgears looks OK. But it's the only app which doesn't have any
> >problems :-).
> >  What I am doing wrong ? I would like to use a stable Mesa, but git x.org
> >requires git mesa to build...
> >        With regards, Pavel Troller
> >_______________________________________________
> >xorg mailing list
> >xorg at lists.freedesktop.org
> >http://lists.freedesktop.org/mailman/listinfo/xorg
> >
-------------- next part --------------
Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath      "/opt64/X11/lib/X11/rgb"
	ModulePath   "/opt64/X11/lib/xorg/modules"
	FontPath     "/opt/winfonts"
	FontPath     "/opt64/X11/lib/X11/fonts/misc/"
	FontPath     "/opt64/X11/lib/X11/fonts/TTF/"
	FontPath     "/opt64/X11/lib/X11/fonts/Type1/"
	FontPath     "/opt64/X11/lib/X11/fonts/CID/"
	FontPath     "/opt64/X11/lib/X11/fonts/75dpi/"
	FontPath     "/opt64/X11/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
	Load  "extmod"
	Load  "dbe"
	Load  "glx"
	Load  "record"
	Load  "xtrap"
	Load  "dri"
	Load  "type1"
	Load  "freetype"
EndSection

Section "Extensions"
        Option "Composite" "true"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/misc/psaux"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	# VertRefresh  45 - 100
	# HorizSync    28 - 90
	# DisplaySize  330 250
	Option       "DPMS"
	Option       "PreferredMode" "1600x1200"
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"       "False"         	# [<bool>]
        #Option     "NoDDC"              	# [<bool>]
        #Option     "ShowCache"          	# [<bool>]
        #Option     "XvMCSurfaces"       	# <i>
        #Option     "PageFlip"           	# [<bool>]
	Option      "monitor-VGA" "Monitor0"
	Option      "Legacy3D" "True"
	Option      "XvMCSurfaces" "7"
	Identifier  "Card0"
	Driver      "i810"
	VendorName  "Intel Corporation"
	BoardName   "945G Integrated Graphics Controller"
	BusID       "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth      24
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Virtual   1600 1200
	EndSubSection
EndSection

Section "DRI"
        Mode 0666
EndSection
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xorg-dri-legacy-true.log.bz2
Type: application/octet-stream
Size: 8840 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20070418/372059f7/attachment-0001.obj>


More information about the xorg mailing list