Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Dec 2009 10:08:37 -0600
From:      Robert Noland <rnoland@2hip.net>
To:        Mark Atkinson <atkin901@gmail.com>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: kwin composite w/ opengl on r600?
Message-ID:  <1259942917.2315.223.camel@balrog.2hip.net>
In-Reply-To: <hf98o4$o23$1@ger.gmane.org>
References:  <hf8snq$epi$1@ger.gmane.org> <1259864054.2315.206.camel@balrog.2hip.net> <hf98o4$o23$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2009-12-03 at 12:57 -0800, Mark Atkinson wrote:
> Robert Noland wrote:
> > On Thu, 2009-12-03 at 09:32 -0800, Mark Atkinson wrote:
> >> Hi,
> >>
> >> I've been trying to get some of the window effects to work under
> >> kwin/kde4.x, however I think I'm being stymied by the dri mesa build
> >> from ports not supporting the r600.
> >>
> >> e.g. it only loads/enables the software rasterizer below.
> >>
> >> Any hints on getting this working?  Can I build the git head for
> >> r600/mesa and have it works with the ports?
> > 
> > right now, you need to update libdrm and mesa.  For libdrm, you can just
> > bump the version in the port to 2.4.15 and it should be fine.  For mesa,
> > you need to install from git until 7.6.1 is released.  7.6 has r600
> > support, but there were a few bugs that didn't get addressed prior to
> > release, which make it very annoying to use in compiz/kde4.
> > 
> > My normal process is:
> > 
> > Clone the mesa/mesa repo.
> > 
> > Use the following to autogen/configure.
> > CPPFLAGS="${CPPFLAGS} -I/usr/local/include" LDFLAGS="${LDFLAGS}
> > -L/usr/local/lib" ./autogen.sh --enable-xcb
> > 
> > gmake
> > 
> > sudo cp lib/lib* /usr/local/lib
> > sudo cp lib/*_dri.so /usr/local/lib/dri
> > 
> > That should have things working pretty well.  Note that you need
> > xf86-video-ati 6.12.4, which I just updated the other day.
> > 
> > robert.
> > 
> 
> Many thanks, that seems to help.  glxgears -info now reports:
> 
> OpenGL vendor string: Advanced Micro Devices, Inc.
> OpenGL renderer string: Mesa DRI R600 (RV610 94C1) 20090101 x86/MMX/SSE2 TCL
> OpenGL version string: 1.5 Mesa 7.8-devel
> 
> If I follow the kde 4.0 composite instructions, compositing is available
> but is disabled because it is too slow.   I only see one suspicious message:
> 
> (II) AIGLX: Screen 0 is not DRI2 capable
> 
> If I disable checks, I can run with compositing, but it is definitely
> very slow.

Hrm, I don't normally use kde, but I have tested with it at times.
Normally I use compiz+gnome and performance should be more than
acceptable.  Even games like nexuiz, openarena, UT and vdrift should be
well into the playable range now.

> If you notice anything conflicting in my xorg.conf please let me know.
> plain text document attachment (xorg.conf)

Actually, I don't see anything odd in this config.  The only thing I can
point out is that I use the radeon driver rather than radeonhd, but it
isn't clear to me if that could somehow impact performance in this area.
The only reason that I know of to use radeonhd currently is if you need
HDMI audio, otherwise radeon has everything and more.

What kernel are you running on?  Any -CURRENT or -STABLE branch should
have all the needed bits.  If you have a kernel that doesn't have
r600_blit.c then it will be really slow since the initial code used a
memcpy before the hardware support was enabled.

robert.

> Section "ServerLayout"
> 	Identifier     "X.org Configured"
> 	Screen      0  "Screen0" 0 0
> 	InputDevice    "Mouse0" "CorePointer"
> 	InputDevice    "Keyboard0" "CoreKeyboard"
> EndSection
> 
> Section "Files"
> 	ModulePath   "/usr/local/lib/xorg/modules"
> 	FontPath     "/usr/local/lib/X11/fonts/misc/"
> 	FontPath     "/usr/local/lib/X11/fonts/TTF/"
> 	FontPath     "/usr/local/lib/X11/fonts/OTF"
> 	FontPath     "/usr/local/lib/X11/fonts/Type1/"
> 	FontPath     "/usr/local/lib/X11/fonts/100dpi/"
> 	FontPath     "/usr/local/lib/X11/fonts/75dpi/"
> EndSection
> 
> Section "Module"
> 	Load  "extmod"
> 	Load  "record"
> 	Load  "dbe"
> 	Load  "glx"
> 	Load  "dri"
> 	Load  "dri2"
> EndSection
> 
> Section "InputDevice"
> 	Identifier  "Keyboard0"
> 	Driver      "kbd"
> EndSection
> 
> Section "InputDevice"
> 	Identifier  "Mouse0"
> 	Driver      "mouse"
> 	Option	    "Protocol" "auto"
> 	Option	    "Device" "/dev/sysmouse"
> 	Option	    "ZAxisMapping" "4 5 6 7"
> EndSection
> 
> Section "Monitor"
> 	Identifier   "Monitor0"
> 	VendorName   "Monitor Vendor"
> 	ModelName    "Monitor Model"
> 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     "AccelMethod"        	# [<str>]
>         #Option     "offscreensize"      	# [<str>]
>         #Option     "SWcursor"           	# [<bool>]
>         #Option     "ignoreconnector"    	# [<str>]
>         #Option     "forcereduced"       	# [<bool>]
>         #Option     "forcedpi"           	# <i>
>         #Option     "useconfiguredmonitor" 	# [<bool>]
>         #Option     "HPD"                	# <str>
>         #Option     "NoRandr"            	# [<bool>]
>         #Option     "RROutputOrder"      	# [<str>]
>         #Option     "DRI"                	# [<bool>]
>         #Option     "TVMode"             	# [<str>]
>         #Option     "ScaleType"          	# [<str>]
>         #Option     "UseAtomBIOS"        	# [<bool>]
>         #Option     "AtomBIOS"           	# [<str>]
>         #Option     "UnverifiedFeatures" 	# [<bool>]
>         #Option     "Audio"              	# [<bool>]
>         #Option     "HDMI"               	# [<str>]
>         #Option     "COHERENT"           	# [<str>]
> 	Identifier  "Card0"
> 	Driver      "radeonhd"
> 	Option      "AccelMethod" "exa"
> 	Option      "DRI" "on"
> 	VendorName  "ATI Technologies Inc"
> 	BoardName   "RV610 [Radeon HD 2400 XT]"
> 	BusID       "PCI:1:0:0"
> EndSection
> 
> Section "Extensions"
> 	Option "Composite" "Enable"
> EndSection
> 
> Section "ServerFlags"
> 	Option "AIGLX"
> EndSection
> 
> Section "DRI"
> 	Group "video"
> 	Mode 0660
> EndSection
> 
> Section "Screen"
> 	Identifier "Screen0"
> 	DefaultDepth 24
> 	SubSection "Display"
> 		Depth     24
> 		Modes     "1600x1200"
> 		Virtual   3200 1200
> 	EndSubSection
> EndSection
> _______________________________________________
> freebsd-x11@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"
-- 
Robert Noland <rnoland@2hip.net>
2Hip Networks




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1259942917.2315.223.camel>