summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-04-17 12:48:26 -0600
committerBrian Paul <brianp@vmware.com>2010-04-19 08:53:13 -0600
commita59771fb5305a4a8bda35bc7175eceecd0a950ee (patch)
tree866c8713f99e9c9725077d3861925a4c7ffc564c
parent62c958738545bbaf4283303613146e6a04f1793a (diff)
llvmpipe: triangle function comments
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_tri.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index 25e6b3edfb..a95053444b 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -601,6 +601,9 @@ do_triangle_ccw(struct lp_setup_context *setup,
}
+/**
+ * Draw triangle if it's CW, cull otherwise.
+ */
static void triangle_cw( struct lp_setup_context *setup,
const float (*v0)[4],
const float (*v1)[4],
@@ -610,6 +613,9 @@ static void triangle_cw( struct lp_setup_context *setup,
}
+/**
+ * Draw triangle if it's CCW, cull otherwise.
+ */
static void triangle_ccw( struct lp_setup_context *setup,
const float (*v0)[4],
const float (*v1)[4],
@@ -619,6 +625,10 @@ static void triangle_ccw( struct lp_setup_context *setup,
}
+
+/**
+ * Draw triangle whether it's CW or CCW.
+ */
static void triangle_both( struct lp_setup_context *setup,
const float (*v0)[4],
const float (*v1)[4],