nir: Stop passing an options arg to nir_lower_int64()
[mesa.git] / src / mesa / tnl / t_vb_points.c
index 273db76829dc3a423df18713fd054de8fe985389..4e7801b2d1041f4f54bd982d1335ac702d89e9d3 100644 (file)
@@ -29,7 +29,7 @@
 #include "main/glheader.h"
 #include "main/mtypes.h"
 #include "main/dd.h"
-#include "main/imports.h"
+
 #include "t_context.h"
 #include "t_pipeline.h"
 
@@ -65,7 +65,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) ? INV_SQRTF(q) : 1.0F;
+         const GLfloat atten = (q != 0.0F) ? (1.0f / sqrtf(q)) : 1.0F;
          size[i][0] = pointSize * atten; /* clamping done in rasterization */
          eyeCoord += eyeCoordStride;
       }