summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_vs.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-04-19 13:12:07 +0100
committerKeith Whitwell <[email protected]>2008-04-19 13:12:42 +0100
commit882e5d84dcb19c24b7b56cfe6049810023f3a17e (patch)
tree78e2a668ce0af6dcf1a9cd64ddc958ea8a6df822 /src/gallium/auxiliary/draw/draw_vs.h
parent26831bdac594a11e51b6c4b09df78bb11444f5dd (diff)
draw: remove dead code
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_vs.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs.h b/src/gallium/auxiliary/draw/draw_vs.h
index b6f3bbdaead..f9772b83b85 100644
--- a/src/gallium/auxiliary/draw/draw_vs.h
+++ b/src/gallium/auxiliary/draw/draw_vs.h
@@ -81,33 +81,6 @@ draw_create_vs_llvm(struct draw_context *draw,
const struct pipe_shader_state *templ);
-/* Should be part of the generated shader:
- */
-static INLINE unsigned
-compute_clipmask(const float *clip, /*const*/ float plane[][4], unsigned nr)
-{
- unsigned mask = 0x0;
- unsigned i;
-
- /* Do the hardwired planes first:
- */
- if (-clip[0] + clip[3] < 0) mask |= CLIP_RIGHT_BIT;
- if ( clip[0] + clip[3] < 0) mask |= CLIP_LEFT_BIT;
- if (-clip[1] + clip[3] < 0) mask |= CLIP_TOP_BIT;
- if ( clip[1] + clip[3] < 0) mask |= CLIP_BOTTOM_BIT;
- if (-clip[2] + clip[3] < 0) mask |= CLIP_FAR_BIT;
- if ( clip[2] + clip[3] < 0) mask |= CLIP_NEAR_BIT;
-
- /* Followed by any remaining ones:
- */
- for (i = 6; i < nr; i++) {
- if (dot4(clip, plane[i]) < 0)
- mask |= (1<<i);
- }
-
- return mask;
-}
-
#define MAX_TGSI_VERTICES 4