[Mesa-dev] Mesa (master): i915g: Improve SIN/COS a bit.

Jon TURNEY jon.turney at dronecode.org.uk
Wed Jun 29 04:49:23 PDT 2011


> Module: Mesa
> Branch: master
> Commit: 062a1e291fdc0ef69b6677f8ae0e3471047e281d
> URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=062a1e291fdc0ef69b6677f8ae0e3471047e281d
> 
> Author: Stéphane Marchesin <marcheu at chromium.org>
> Date:   Tue Jun 28 00:53:01 2011 -0700
> 
> i915g: Improve SIN/COS a bit.
> 
> ---
> 
>  src/gallium/drivers/i915/i915_fpc_translate.c |   40 ++++++++++++------------
>  1 files changed, 20 insertions(+), 20 deletions(-)

This adds some more uses of M_PI to i915_fpc_translate.c, before the
definition of M_PI it makes for the benefit of <math.h> which don't define
M_PI. See [1].

Attached is a patch which fixes this by moving the definition of M_PI.

I'm not sure why this file and the few others which do this, don't include
compiler.h for the definition M_PI there...

[1] http://tinderbox.freedesktop.org/builds/2011-06-28-0002/logs/libGL/#build
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-i915g-Move-definition-of-M_PI-in-i915_fpc_translate..patch
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110629/4c327dd8/attachment.asc>


More information about the mesa-dev mailing list