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) {
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);
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 */
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 */