mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 07:48:07 +02:00
i915g: Move definition of M_PI in i915_fpc_translate.c
Move defintion of M_PI (for the benefit of <math.h> which do not define it), to before the first use of it Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
475685ce50
commit
8f0a331040
1 changed files with 3 additions and 5 deletions
|
|
@ -41,6 +41,9 @@
|
|||
|
||||
#include "draw/draw_vertex.h"
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Simple pass-through fragment shader to use when we don't have
|
||||
|
|
@ -442,11 +445,6 @@ emit_simple_arith_swap2(struct i915_fp_compile *p,
|
|||
emit_simple_arith(p, &inst2, opcode, numArgs, fs);
|
||||
}
|
||||
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Translate TGSI instruction to i915 instruction.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue