[Mesa-dev] [PATCH 08/16] st/nine: Change x86 FPU Control word on device creation as on wined3d and windows
Henri Verbeet
hverbeet at gmail.com
Sat Apr 25 01:15:57 PDT 2015
On 25 April 2015 at 09:58, Axel Davy <axel.davy at ens.fr> wrote:
> static void nine_setup()
> {
> fpu_control_t c;
>
> _FPU_GETCW(c);
> /* clear the control word */
> c &= _FPU_RESERVED;
> /* enable interrupts (d3d9 doc, wine tests) */
> c |= _FPU_MASK_IM | _FPU_MASK_DM | _FPU_MASK_ZM | _FPU_MASK_OM |
> _FPU_MASK_UM | _FPU_MASK_PM;
> _FPU_SETCW(c);
> }
The comment is misleading, because the code does more than that.
(Hint: What happens to rounding and precision control?)
But really, please either explicitly tell people they can't look at
Wine (D3D related) source if they want to contribute to st/nine, or
just license st/nine under LGPL as well.
More information about the mesa-dev
mailing list