diff options
author | Brian Paul <[email protected]> | 2009-06-19 09:45:23 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-06-19 09:45:23 -0600 |
commit | d2e4643767ce2a1f30e6ef1c86c2aa225c025c32 (patch) | |
tree | f7f0fc2f43ec6d68fde64740b3e75902ed5f2333 /src/gallium/auxiliary/draw/draw_pt_util.c | |
parent | 09da78c235cdfa736cd5ea8ee62757f58b7d9f96 (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.c | 25 |
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; - } -} - - |