From 5b0edff412f45fe64bd42fb481adeda7d34b0fa8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 13 Oct 2006 17:41:23 +0000 Subject: Consolidate, move, fix code related to color index and stencil image transfer operations (shift, offset, table lookup, etc). --- src/mesa/main/pixel.c | 81 --------------------------------------------------- 1 file changed, 81 deletions(-) (limited to 'src/mesa/main/pixel.c') diff --git a/src/mesa/main/pixel.c b/src/mesa/main/pixel.c index e0a9084326..d20f89c543 100644 --- a/src/mesa/main/pixel.c +++ b/src/mesa/main/pixel.c @@ -1406,49 +1406,6 @@ _mesa_lookup_rgba_ubyte(const struct gl_color_table *table, -/* - * Apply color index shift and offset to an array of pixels. - */ -void -_mesa_shift_and_offset_ci( const GLcontext *ctx, GLuint n, GLuint indexes[] ) -{ - GLint shift = ctx->Pixel.IndexShift; - GLint offset = ctx->Pixel.IndexOffset; - GLuint i; - if (shift > 0) { - for (i=0;i> shift) + offset; - } - } - else { - for (i=0;iPixel.MapItoIsize - 1; - GLuint i; - for (i = 0; i < n; i++) { - const GLuint j = index[i] & mask; - index[i] = IROUND(ctx->Pixel.MapItoI[j]); - } -} - - /* * Map color indexes to float rgba values. */ @@ -1499,44 +1456,6 @@ _mesa_map_ci8_to_rgba8(const GLcontext *ctx, GLuint n, const GLubyte index[], } -void -_mesa_shift_and_offset_stencil( const GLcontext *ctx, GLuint n, - GLstencil stencil[] ) -{ - GLuint i; - GLint shift = ctx->Pixel.IndexShift; - GLint offset = ctx->Pixel.IndexOffset; - if (shift > 0) { - for (i=0;i> shift) + offset; - } - } - else { - for (i=0;iPixel.MapStoSsize - 1; - GLuint i; - for (i=0;iPixel.MapStoS[ stencil[i] & mask ]; - } -} - - void _mesa_scale_and_bias_depth(const GLcontext *ctx, GLuint n, GLfloat depthValues[]) -- cgit v1.2.3