diff options
author | Brian Paul <[email protected]> | 2011-09-17 15:25:33 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-20 20:17:41 -0600 |
commit | ece8d6f25cac9c7ca0237cde3ebdb90e86c6118a (patch) | |
tree | bc38cd1dceb4630f88d77320a1775b07a6cd677f /src/mesa/main/mipmap.c | |
parent | 529b9360f326dd25bd12cf8e036b9ac1c63a8032 (diff) |
mesa: move _mesa_upscale_teximage2d() to texcompress_fxt1.c
Was used by no other code.
Diffstat (limited to 'src/mesa/main/mipmap.c')
-rw-r--r-- | src/mesa/main/mipmap.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c index 5f18c71681d..1ead5ee104a 100644 --- a/src/mesa/main/mipmap.c +++ b/src/mesa/main/mipmap.c @@ -2218,37 +2218,3 @@ do { \ } } - -/** - * Upscale an image by replication, not (typical) stretching. - * We use this when the image width or height is less than a - * certain size (4, 8) and we need to upscale an image. - */ -void -_mesa_upscale_teximage2d(GLsizei inWidth, GLsizei inHeight, - GLsizei outWidth, GLsizei outHeight, - GLint comps, const GLchan *src, GLint srcRowStride, - GLchan *dest ) -{ - GLint i, j, k; - - ASSERT(outWidth >= inWidth); - ASSERT(outHeight >= inHeight); -#if 0 - ASSERT(inWidth == 1 || inWidth == 2 || inHeight == 1 || inHeight == 2); - ASSERT((outWidth & 3) == 0); - ASSERT((outHeight & 3) == 0); -#endif - - for (i = 0; i < outHeight; i++) { - const GLint ii = i % inHeight; - for (j = 0; j < outWidth; j++) { - const GLint jj = j % inWidth; - for (k = 0; k < comps; k++) { - dest[(i * outWidth + j) * comps + k] - = src[ii * srcRowStride + jj * comps + k]; - } - } - } -} - |