diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-04-12 11:03:56 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-04-12 11:03:56 -0600 |
commit | 2ebc99fcbc0c8fc6f6ce50e2ee674312e214ea2f (patch) | |
tree | b73c07dfb95a6ac4dbf8115b233e1c53313fe875 /src/gallium/auxiliary/draw/draw_vs_sse.c | |
parent | 593cf5a6b55eb9b490a2aee2c3850d2d493fc4df (diff) |
gallium: move duplicated compute_clipmask() code to draw_vs.h
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs_sse.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_vs_sse.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_sse.c b/src/gallium/auxiliary/draw/draw_vs_sse.c index 13394129bc..0ee991d764 100644 --- a/src/gallium/auxiliary/draw/draw_vs_sse.c +++ b/src/gallium/auxiliary/draw/draw_vs_sse.c @@ -62,34 +62,6 @@ struct draw_sse_vertex_shader { }; -/* Should be part of the generated shader: - */ -static INLINE unsigned -compute_clipmask(const float *clip, /*const*/ float plane[][4], unsigned nr) -{ - unsigned mask = 0; - 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; -} - - static void vs_sse_prepare( struct draw_vertex_shader *base, struct draw_context *draw ) |