From owner-freebsd-multimedia Sun Jan 13 18:27:13 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 0BD3237B422 for ; Sun, 13 Jan 2002 18:26:55 -0800 (PST) Received: from stealth.cary.dummynet ([66.26.231.240]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Sun, 13 Jan 2002 20:38:46 -0500 Received: (from rhh@localhost) by stealth.cary.dummynet (8.11.4/8.11.4) id g0E1dBx71644; Sun, 13 Jan 2002 20:39:11 -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 20:39:11 -0500 From: Randall Hopper To: joeo@cracktown.com Cc: multimedia@FreeBSD.ORG Subject: Re: Unreal Tournament (was Re: OpenGL) Message-ID: <20020113203911.A71394@nc.rr.com> References: <20020113140539.A65807@nc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from joeo@cracktown.com on Sun, Jan 13, 2002 at 03:27:36PM -0500 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 joeo@cracktown.com: |> 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. ... |Short answer. Grab the *_dri.so's out of the linux binary distribution of |XFree86-4.1.0. There shouldn't have been major changes to prevent this |from working with the MGA. I just tried that, pulling XFree86 4.1.0's libs/modules Linux-ix86-glibc21 directly from xfree86.org. I get: libGL: XF86DRIGetClientDriverName: 1.1.0 mga libGL: trying /usr/X11R6/lib/modules/dri/mga_dri.so libGL: trying /usr/X11R6/lib/modules/dri/mga_dri.so libGL error: failed to open DRM: Operation not permitted libGL error: reverting to (slow) indirect rendering display: :0.0 screen:0 direct rendering: No Originally, I'd tried the linux_dri-4.1.0 port, with exactly the same results. |Okay, here's the deal with the linux emulation prblems for the compiled |_linux_ libs for the CVS resident stuff... ... |#if defined(XFree86Server) | fd = drmOpenMinor(i, 1); |#else | fd = drmOpenMinor(i, 0); |#endif Thanks. It got a little further this time, but still has problems. Here's what I get: > ./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 drmOpenByBusid: drmOpenMinor returns 4 drmOpenByBusid: drmGetBusid reports (null) drmOpenByBusid: drmOpenMinor returns -2 drmOpenByBusid: drmOpenMinor returns -2 drmOpenByBusid: drmOpenMinor returns -2 ... So drmOpenMinor succeeds for card 0 now, with your patches, but then drmGetBusid returns NULL, probably from the drmMalloc in there. Following it through, I see _DRM_USE_MALLOC in drmMalloc expands to be Xalloc (i.e. xalloc) which appears to be true only when "XFree86Server" is defined (?). Strange. I'm doing a rebuild now to see if something wasn't propagated correctly (though, having edited only one .c file and having seen the results of the change in the glxinfo run, I'm not optimistic that it'll make a difference...) Randall -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message