draw: move some pipeline-specific code & state to draw_pipe.[ch]
[mesa.git] / src / gallium / auxiliary / draw / draw_pt_post_vs.c
index b3ecec6ece78ed6f399e3cc8632e27efa40851d5..581f044dae10f0bef4f8e02ad449c051ee163e75 100644 (file)
@@ -44,6 +44,17 @@ struct pt_post_vs {
 
 
 
+static INLINE float
+dot4(const float *a, const float *b)
+{
+   return (a[0]*b[0] +
+           a[1]*b[1] +
+           a[2]*b[2] +
+           a[3]*b[3]);
+}
+
+
+
 static INLINE unsigned
 compute_clipmask_gl(const float *clip, /*const*/ float plane[][4], unsigned nr)
 {