savageScreen->agpTextures.map = NULL;
savageScreen->texVirtual[SAVAGE_CARD_HEAP] =
- (drmAddress)(((unsigned int)sPriv->pFB)+gDRIPriv->textureOffset);
+ (drmAddress)(((GLubyte *)sPriv->pFB)+gDRIPriv->textureOffset);
savageScreen->texVirtual[SAVAGE_AGP_HEAP] =
(drmAddress)(savageScreen->agpTextures.map);
for(i=0;i<5;i++)
{
- imesa->apertureBase[i] = ((GLuint)savageScreen->aperture.map +
- 0x01000000 * i );
+ imesa->apertureBase[i] = (GLubyte *)savageScreen->aperture.map +
+ 0x01000000 * i;
}
imesa->aperturePitch = savageScreen->aperturePitch;
struct savage_vtxbuf_t *vtxBuf;
/* aperture base */
- GLuint apertureBase[5];
+ GLubyte *apertureBase[5];
GLuint aperturePitch;
/* Manage hardware state */
GLuint dirty;
/* These refer to the current draw (front vs. back) buffer:
*/
- char *drawMap; /* draw buffer address in virtual mem */
- char *readMap;
+ GLubyte *drawMap; /* draw buffer address in virtual mem */
+ GLubyte *readMap;
int drawX; /* origin of drawable in draw buffer */
int drawY;
GLuint numClipRects; /* cliprects for that buffer */
GLuint cpp = savageScreen->cpp; \
GLuint pitch = imesa->aperturePitch; \
GLuint height = dPriv->h; \
- char *buf = (char *)(map + \
- dPriv->x * cpp + \
- dPriv->y * pitch); \
+ GLubyte *buf = map + \
+ dPriv->x * cpp + \
+ dPriv->y * pitch; \
GLuint p; \
(void) p
GLuint zpp = savageScreen->zpp; \
GLuint pitch = imesa->aperturePitch; \
GLuint height = dPriv->h; \
- char *buf = (char *)(imesa->apertureBase[TARGET_DEPTH] + \
- dPriv->x * zpp + \
- dPriv->y * pitch)
+ GLubyte *buf = imesa->apertureBase[TARGET_DEPTH] + \
+ dPriv->x * zpp + \
+ dPriv->y * pitch
#define LOCAL_STENCIL_VARS LOCAL_DEPTH_VARS
#define HW_WRITE_LOCK() \
savageContextPtr imesa = SAVAGE_CONTEXT(ctx); \
- char *map = imesa->drawMap;
+ GLubyte *map = imesa->drawMap;
#define HW_READ_LOCK() \
savageContextPtr imesa = SAVAGE_CONTEXT(ctx); \
- char *map = imesa->readMap;
+ GLubyte *map = imesa->readMap;
#define HW_CLIPLOOP() \
do { \
assert((bufferBit == DD_FRONT_LEFT_BIT) || (bufferBit == DD_BACK_LEFT_BIT));
map = (bufferBit == DD_FRONT_LEFT_BIT)
- ? (char*)imesa->apertureBase[TARGET_FRONT]
- : (char*)imesa->apertureBase[TARGET_BACK];
+ ? imesa->apertureBase[TARGET_FRONT]
+ : imesa->apertureBase[TARGET_BACK];
imesa->drawMap = map;
imesa->readMap = map;
imesa->regs.s4.destCtrl.ni.dstWidthInTile =
(imesa->savageScreen->width+31)>>5;
}
- imesa->drawMap = (char *)imesa->apertureBase[imesa->toggle];
- imesa->readMap = (char *)imesa->apertureBase[imesa->toggle];
+ imesa->drawMap = imesa->apertureBase[imesa->toggle];
+ imesa->readMap = imesa->apertureBase[imesa->toggle];
imesa->NotFirstFrame = GL_FALSE;
imesa->regs.s4.zBufOffset.ni.offset=imesa->savageScreen->depthOffset>>11;
ofs = t->base.memBlock->ofs;
t->setup.physAddr = imesa->savageScreen->textureOffset[heap] + ofs;
- t->bufAddr = (char *)((GLuint) imesa->savageScreen->texVirtual[heap] + ofs);
+ t->bufAddr = (GLubyte *)imesa->savageScreen->texVirtual[heap] + ofs;
imesa->dirty |= SAVAGE_UPLOAD_GLOBAL; /* FIXME: really needed? */
}