From owner-freebsd-multimedia Sat May 8 3:52:14 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 2A84A1516F; Sat, 8 May 1999 03:52:08 -0700 (PDT) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id GAA10620; Sat, 8 May 1999 06:52:01 -0400 (EDT) Date: Sat, 8 May 1999 06:52:01 -0400 (EDT) From: Brian Feldman X-Sender: green@janus.syracuse.net To: Doug Rabson Cc: eagle , John-Mark Gurney , Lee Cremeans , hackers@FreeBSD.ORG, multimedia@FreeBSD.ORG Subject: Re: G200 GLX and SIGFPU In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 8 May 1999, Doug Rabson wrote: > On Sat, 8 May 1999, Brian Feldman wrote: > > > On Sat, 8 May 1999, eagle wrote: > > > > > > > > > > > On Sat, 8 May 1999, Doug Rabson wrote: > > > > > > > > This should be done by the GL implementation. At Microsoft, we used to > > > > save/restore the fp flags on entry to Direct3D so that we could force the > > > > correct mode for our maths to work properly. We had all sorts of trouble > > > > before doing that (stupid exceptions enabled, people changing fp > > > > precision etc). > > > > > > > > I think in current versions of D3D, there is an api which you can call to > > > > say 'I agree not to touch the fp flags' which improves performance > > > > slightly. Mesa should be doing something similar, IMHO. > > > > > > > That was my next question shouldn't this be done in the port of MESA since > > > thats whats throwing the sigfpe, disabling it in flightgear wouldn't help > > > the problem at all.. > > > > What about switching to __BETTER_BDE_NPXCW__? > > It looks like __BETTER_BDE_NPXCW__ would mask OVF, DIV0 and INV which I > think is a better default. Is there some reason other than inertia for not > changing to __BETTER_BDE_NPXCW__? I've never seen anyone cite one. And think about this: there are ports like {"/home/green"}$ find /usr/ports -name patch-?? -exec grep fpsetmask {} \; + fpsetmask(0); + fpsetmask(0); + fpsetmask(fpgetmask() & ~FP_X_INV); + fpsetmask(0); > > I still think Mesa should deal with the flags itself (and save/restore > them) otherwise it can get hosed by a stupid application changing to 23bit > precision or something similar. > > -- > Doug Rabson Mail: dfr@nlsystems.com > Nonlinear Systems Ltd. Phone: +44 181 442 9037 > > > Brian Feldman _ __ ___ ____ ___ ___ ___ green@unixhelp.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \ _ \ |) | http://www.freebsd.org _ |___)___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message