summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2012-07-20 10:03:10 -0700
committerMatt Turner <[email protected]>2012-07-21 08:23:38 -0700
commitec79138138c3c88afb2052823b1e3f5271493085 (patch)
tree267c55fc8713925e09cbe4970a4f0fa55317639b /src/mesa/tnl
parentbd9bf7a42473dfbdae4b61dd2556eba9529e9dd0 (diff)
Use INV_SQRT instead of 1/SQRTF
Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_vb_points.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vb_points.c b/src/mesa/tnl/t_vb_points.c
index 9edbbc708e6..0e33b691e0f 100644
--- a/src/mesa/tnl/t_vb_points.c
+++ b/src/mesa/tnl/t_vb_points.c
@@ -64,7 +64,7 @@ run_point_stage(struct gl_context *ctx, struct tnl_pipeline_stage *stage)
for (i = 0; i < VB->Count; i++) {
const GLfloat dist = FABSF(*eyeCoord);
const GLfloat q = p0 + dist * (p1 + dist * p2);
- const GLfloat atten = (q != 0.0F) ? SQRTF(1.0F / q) : 1.0F;
+ const GLfloat atten = (q != 0.0F) ? INV_SQRTF(q) : 1.0F;
size[i][0] = pointSize * atten; /* clamping done in rasterization */
eyeCoord += eyeCoordStride;
}