diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-05-02 14:32:44 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-05-02 14:32:44 +0000 |
commit | edc09004fdfda4fec1fd5345b5ee78938e2c896f (patch) | |
tree | 283267f31aef714f1a0433d4c80cd840e128d341 /src/mesa/drivers | |
parent | 80fc5ea53e0f1dac9df529965687c159acae057f (diff) |
fix StoreImage calls, remove dead code (Adam Jackson)
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/tdfx/tdfx_tex.c | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_tex.c b/src/mesa/drivers/dri/tdfx/tdfx_tex.c index 7c06373ebb..942b6f29c5 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_tex.c +++ b/src/mesa/drivers/dri/tdfx/tdfx_tex.c @@ -962,23 +962,13 @@ tdfxTexImage2D(GLcontext *ctx, GLenum target, GLint level, return; } /* unpack image, apply transfer ops and store in tempImage */ -#if !NEWTEXSTORE - _mesa_transfer_teximage(ctx, 2, texImage->Format, - texImage->TexFormat, - tempImage, - width, height, 1, 0, 0, 0, - width * texelBytes, - 0, /* dstImageStride */ - format, type, pixels, packing); -#else texImage->TexFormat->StoreImage(ctx, 2, texImage->Format, - texImage->Format, tempImage, + &texImage->Format, tempImage, 0, 0, 0, /* dstX/Y/Zoffset */ width * texelBytes, /* dstRowStride */ 0, /* dstImageStride */ width, height, 1, format, type, pixels, packing); -#endif assert(!texImage->Data); texImage->Data = MESA_PBUFFER_ALLOC(mml->width * mml->height * texelBytes); if (!texImage->Data) { @@ -1002,22 +992,13 @@ tdfxTexImage2D(GLcontext *ctx, GLenum target, GLint level, return; } /* unpack image, apply transfer ops and store in texImage->Data */ -#if !NEWTEXSTORE - _mesa_transfer_teximage(ctx, 2, texImage->Format, - texImage->TexFormat, texImage->Data, - width, height, 1, 0, 0, 0, - texImage->Width * texelBytes, - 0, /* dstImageStride */ - format, type, pixels, packing); -#else texImage->TexFormat->StoreImage(ctx, 2, texImage->Format, - texImage->Format, texImage->Data, + &texImage->Format, texImage->Data, 0, 0, 0, /* dstX/Y/Zoffset */ width * texelBytes, /* dstRowStride */ 0, /* dstImageStride */ width, height, 1, format, type, pixels, packing); -#endif } RevalidateTexture(ctx, texObj); @@ -1080,7 +1061,7 @@ tdfxTexSubImage2D(GLcontext *ctx, GLenum target, GLint level, format, type, pixels, packing); #else texImage->TexFormat->StoreImage(ctx, 2, texImage->Format, - texImage->Format, texImage->Data, + &texImage->Format, texImage->Data, 0, 0, 0, /* dstX/Y/Zoffset */ width * texelBytes, /* dstRowStride */ 0, /* dstImageStride */ @@ -1123,7 +1104,7 @@ tdfxTexSubImage2D(GLcontext *ctx, GLenum target, GLint level, format, type, pixels, packing); #else texImage->TexFormat->StoreImage(ctx, 2, texImage->Format, - texImage->Format, texImage->Data, + &texImage->Format, texImage->Data, xoffset, yoffset, 0, mml->width * texelBytes, /* dstRowStride */ 0, /* dstImageStride */ |