From owner-freebsd-x11@FreeBSD.ORG Thu Dec 3 20:58:03 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B63E91065672 for ; Thu, 3 Dec 2009 20:58:03 +0000 (UTC) (envelope-from gofdx-freebsd-x11@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 4202C8FC08 for ; Thu, 3 Dec 2009 20:58:02 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NGIkS-0002q8-Ay for freebsd-x11@freebsd.org; Thu, 03 Dec 2009 21:58:00 +0100 Received: from 207.155.204.151.ptr.us.xo.net ([207.155.204.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Dec 2009 21:58:00 +0100 Received: from atkin901 by 207.155.204.151.ptr.us.xo.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Dec 2009 21:58:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-x11@freebsd.org From: Mark Atkinson Date: Thu, 03 Dec 2009 12:57:38 -0800 Lines: 169 Message-ID: References: <1259864054.2315.206.camel@balrog.2hip.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040505030107010603040808" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 207.155.204.151.ptr.us.xo.net User-Agent: Thunderbird 2.0.0.23 (X11/20091201) In-Reply-To: <1259864054.2315.206.camel@balrog.2hip.net> Sender: news Subject: Re: kwin composite w/ opengl on r600? X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 20:58:03 -0000 This is a multi-part message in MIME format. --------------040505030107010603040808 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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. If you notice anything conflicting in my xorg.conf please let me know. --------------040505030107010603040808 Content-Type: text/plain; name="xorg.conf" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xorg.conf" 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: : integer, : float, : "True"/"False", ### : "String", : " Hz/kHz/MHz" ### [arg]: arg optional #Option "NoAccel" # [] #Option "AccelMethod" # [] #Option "offscreensize" # [] #Option "SWcursor" # [] #Option "ignoreconnector" # [] #Option "forcereduced" # [] #Option "forcedpi" # #Option "useconfiguredmonitor" # [] #Option "HPD" # #Option "NoRandr" # [] #Option "RROutputOrder" # [] #Option "DRI" # [] #Option "TVMode" # [] #Option "ScaleType" # [] #Option "UseAtomBIOS" # [] #Option "AtomBIOS" # [] #Option "UnverifiedFeatures" # [] #Option "Audio" # [] #Option "HDMI" # [] #Option "COHERENT" # [] 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 --------------040505030107010603040808--