diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-02-24 16:10:02 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-03 12:37:04 -0800 |
commit | 0ca57295785f3ab040890037e6a2645a70d2b2f2 (patch) | |
tree | 8812b3a3a859b8f40b73304695aaf866ea1d1cf5 /src | |
parent | b00362e51b28b4ea43c5f42353182146bd5e802b (diff) | |
download | external_mesa3d-0ca57295785f3ab040890037e6a2645a70d2b2f2.zip external_mesa3d-0ca57295785f3ab040890037e6a2645a70d2b2f2.tar.gz external_mesa3d-0ca57295785f3ab040890037e6a2645a70d2b2f2.tar.bz2 |
swrast: Remove _swrast_mask_ci_span
After all the recent color-index rendering removal,
_swrast_mask_ci_span is no longer used anywhere.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/swrast/s_masking.c | 31 | ||||
-rw-r--r-- | src/mesa/swrast/s_masking.h | 5 |
2 files changed, 0 insertions, 36 deletions
diff --git a/src/mesa/swrast/s_masking.c b/src/mesa/swrast/s_masking.c index 69c2feb..e38d90f 100644 --- a/src/mesa/swrast/s_masking.c +++ b/src/mesa/swrast/s_masking.c @@ -101,34 +101,3 @@ _swrast_mask_rgba_span(GLcontext *ctx, struct gl_renderbuffer *rb, } } } - - -/** - * Apply the index mask to a span of color index values. - */ -void -_swrast_mask_ci_span(GLcontext *ctx, struct gl_renderbuffer *rb, - SWspan *span) -{ - const GLuint srcMask = ctx->Color.IndexMask; - const GLuint dstMask = ~srcMask; - GLuint *index = span->array->index; - GLuint dest[MAX_WIDTH]; - GLuint i; - - ASSERT(span->arrayMask & SPAN_INDEX); - ASSERT(span->end <= MAX_WIDTH); - ASSERT(rb->DataType == GL_UNSIGNED_INT); - - if (span->arrayMask & SPAN_XY) { - _swrast_get_values(ctx, rb, span->end, span->array->x, span->array->y, - dest, sizeof(GLuint)); - } - else { - _swrast_read_index_span(ctx, rb, span->end, span->x, span->y, dest); - } - - for (i = 0; i < span->end; i++) { - index[i] = (index[i] & srcMask) | (dest[i] & dstMask); - } -} diff --git a/src/mesa/swrast/s_masking.h b/src/mesa/swrast/s_masking.h index fed47f8..3ba4f83 100644 --- a/src/mesa/swrast/s_masking.h +++ b/src/mesa/swrast/s_masking.h @@ -34,9 +34,4 @@ extern void _swrast_mask_rgba_span(GLcontext *ctx, struct gl_renderbuffer *rb, SWspan *span, GLuint buf); - -extern void -_swrast_mask_ci_span(GLcontext *ctx, struct gl_renderbuffer *rb, - SWspan *span); - #endif |