summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_pt_util.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-06-19 09:45:23 -0600
committerBrian Paul <[email protected]>2009-06-19 09:45:23 -0600
commitd2e4643767ce2a1f30e6ef1c86c2aa225c025c32 (patch)
treef7f0fc2f43ec6d68fde64740b3e75902ed5f2333 /src/gallium/auxiliary/draw/draw_pt_util.c
parent09da78c235cdfa736cd5ea8ee62757f58b7d9f96 (diff)
draw: use u_reduced_prim() function
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_util.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_util.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_util.c b/src/gallium/auxiliary/draw/draw_pt_util.c
index 3bc7939c556..b61fa291436 100644
--- a/src/gallium/auxiliary/draw/draw_pt_util.c
+++ b/src/gallium/auxiliary/draw/draw_pt_util.c
@@ -75,28 +75,3 @@ void draw_pt_split_prim(unsigned prim, unsigned *first, unsigned *incr)
break;
}
}
-
-
-unsigned draw_pt_reduced_prim(unsigned prim)
-{
- switch (prim) {
- case PIPE_PRIM_POINTS:
- return PIPE_PRIM_POINTS;
- case PIPE_PRIM_LINES:
- case PIPE_PRIM_LINE_STRIP:
- case PIPE_PRIM_LINE_LOOP:
- return PIPE_PRIM_LINES;
- case PIPE_PRIM_TRIANGLES:
- case PIPE_PRIM_TRIANGLE_STRIP:
- case PIPE_PRIM_TRIANGLE_FAN:
- case PIPE_PRIM_POLYGON:
- case PIPE_PRIM_QUADS:
- case PIPE_PRIM_QUAD_STRIP:
- return PIPE_PRIM_TRIANGLES;
- default:
- assert(0);
- return PIPE_PRIM_POINTS;
- }
-}
-
-