projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
draw: move some pipeline-specific code & state to draw_pipe.[ch]
[mesa.git]
/
src
/
gallium
/
auxiliary
/
draw
/
draw_pt_post_vs.c
diff --git
a/src/gallium/auxiliary/draw/draw_pt_post_vs.c
b/src/gallium/auxiliary/draw/draw_pt_post_vs.c
index b3ecec6ece78ed6f399e3cc8632e27efa40851d5..581f044dae10f0bef4f8e02ad449c051ee163e75 100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_pt_post_vs.c
+++ b/
src/gallium/auxiliary/draw/draw_pt_post_vs.c
@@
-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)
{