From owner-freebsd-multimedia Sun Jan 13 11: 5:27 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail4.nc.rr.com (fe4.southeast.rr.com [24.93.67.51]) by hub.freebsd.org (Postfix) with ESMTP id B611437B405 for ; Sun, 13 Jan 2002 11:05:20 -0800 (PST) Received: from stealth.cary.dummynet ([66.26.231.240]) by mail4.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Sun, 13 Jan 2002 14:05:17 -0500 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id g0DJ5et65965; Sun, 13 Jan 2002 14:05:40 -0500 (EST) (envelope-from aa8vb@nc.rr.com) X-Authentication-Warning: stealth.cary.dummynet: rhh set sender to aa8vb@nc.rr.com using -f Date: Sun, 13 Jan 2002 14:05:40 -0500 From: Randall Hopper To: "Karel J. Bosschaart" Cc: multimedia@freebsd.org Subject: Unreal Tournament (was Re: OpenGL) Message-ID: <20020113140539.A65807@nc.rr.com> References: <20020103191937.A705@nc.rr.com> <20020107180542.F246@v-ger.we.lc.ehu.es> <20020107203118.A4100@nc.rr.com> <20020108104250.A290@wop21.wop.wtb.tue.nl> <20020108203329.A1162@nc.rr.com> <20020109145047.A31295@wop21.wop.wtb.tue.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020109145047.A31295@wop21.wop.wtb.tue.nl>; from karelj@wop21.wop.wtb.tue.nl on Wed, Jan 09, 2002 at 02:50:47PM +0100 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Karel J. Bosschaart: |> Cool! I wonder if you could point me to how to get going with Unreal |> Tournament (client) on FreeBSD. I'm hyped to try that with DRI now running |> here on my G450/A7M266. | |Sure: you need to install the XFree86-4 libraries in /compat/linux. Nowadays |there is a port /usr/ports/graphics/linux_dri that does this for you, unless |you have DRI-CVS. Then you have to take care that you have exactly the same |library version in place under /compat/linux. Now you can try a linux testing |program such as glxinfo and see if it gives reasonable output. I took the |Linux version of glxinfo from http://dri.sourceforge.net/res.phtml . |(But maybe it's installed by the linux_dri port nowadays - didn't try it |out yet) ... Ok, I just built exactly the same XFree86 CVS snapshot I'm running on FreeBSD on Linux, and installed the resulting libGL and libGLU libs, glxinfo executable, and X11R6/lib/modules in /compat/linux/usr/X11R6. Running this Linux glxinfo with LIBGL_DEBUG set now shows that the Linux glxinfo can't open /dev/dri/card0, whereas the FreeBSD glxinfo can. Did you hit this? Do I need to be running a Linux X server for this to work? /compat/linux/dev doesn't even exist here. Thanks for any tips, Randall Linux glxinfo: > ./glxinfo name of display: :0.0 libGL: XF86DRIGetClientDriverName: 1.1.0 mga (screen 0) libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/mga_dri.so libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/mga_dri.so drmOpenByBusid: busid is PCI:1:5:0 drmOpenDevice: minor is 0 drmOpenDevice: node name is /dev/dri/card0 drmOpenByBusid: drmOpenMinor returns -1003 drmOpenDevice: minor is 1 drmOpenDevice: node name is /dev/dri/card1 drmOpenByBusid: drmOpenMinor returns -1003 drmOpenDevice: minor is 2 drmOpenDevice: node name is /dev/dri/card2 drmOpenByBusid: drmOpenMinor returns -1003 ... drmOpenDevice: minor is 14 drmOpenDevice: node name is /dev/dri/card14 drmOpenByBusid: drmOpenMinor returns -1003 libGL error: failed to open DRM: Operation not permitted libGL error: reverting to (slow) indirect rendering display: :0 screen: 0 direct rendering: No ... FreeBSD glxinfo: > /usr/X11R6/bin/glxinfo name of display: :0.0 libGL: XF86DRIGetClientDriverName: 1.1.0 mga (screen 0) libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/mga_dri.so libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/mga_dri.so drmOpenByBusid: busid is PCI:1:5:0 drmOpenDevice: minor is 0 drmOpenDevice: node name is /dev/dri/card0 drmOpenDevice: open result is 6, (OK) drmOpenByBusid: drmOpenMinor returns 6 drmOpenByBusid: drmGetBusid reports PCI:1:5:0 display: :0 screen: 0 direct rendering: Yes -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message