diff options
author | Felix Kuehling <[email protected]> | 2004-03-21 11:28:07 +0000 |
---|---|---|
committer | Felix Kuehling <[email protected]> | 2004-03-21 11:28:07 +0000 |
commit | 416b7a87889b99de392db182796b913e75d89cd3 (patch) | |
tree | afb0513ff1e0840ddac81ab0a2dade66cc770ffa /src/mesa/drivers/dri/savage/savagetex.c | |
parent | 9d688919018ee8cfd74e1aee119e6765c37c7e38 (diff) |
unsigned int -> uint32_t, unsigned char -> uint8_t where the size matters.
A bit more cosmetics.
Improved state emit on Savage 3D/IX/MX.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagetex.c')
-rw-r--r-- | src/mesa/drivers/dri/savage/savagetex.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/savage/savagetex.c b/src/mesa/drivers/dri/savage/savagetex.c index b7473469dc9..541de5bf865 100644 --- a/src/mesa/drivers/dri/savage/savagetex.c +++ b/src/mesa/drivers/dri/savage/savagetex.c @@ -1070,7 +1070,7 @@ static void savageUpdateTex0State_s4( GLcontext *ctx ) if (imesa->regs.s4.texDescr.ni.tex1En) imesa->regs.s4.texDescr.ni.texBLoopEn = GL_TRUE; - imesa->regs.s4.texAddr[0].ui = (GLuint) t->texParams.hwPhysAddress | 0x2; + imesa->regs.s4.texAddr[0].ui = (uint32_t) t->texParams.hwPhysAddress | 0x2; if(t->heap == SAVAGE_AGP_HEAP) imesa->regs.s4.texAddr[0].ui |= 0x1; @@ -1270,7 +1270,7 @@ static void savageUpdateTex1State_s4( GLcontext *ctx ) imesa->regs.s4.texCtrl[1].ni.dMax = t->max_level; imesa->regs.s4.texDescr.ni.texBLoopEn = GL_TRUE; - imesa->regs.s4.texAddr[1].ui = (GLuint) t->texParams.hwPhysAddress| 2; + imesa->regs.s4.texAddr[1].ui = (uint32_t) t->texParams.hwPhysAddress| 2; if(t->heap == SAVAGE_AGP_HEAP) imesa->regs.s4.texAddr[1].ui |= 0x1; } @@ -1410,14 +1410,9 @@ static void savageUpdateTexState_s3d( GLcontext *ctx ) assert (t->image[0].internalFormat <= 7); imesa->regs.s3d.texDescr.ni.texFmt = t->image[0].internalFormat; - imesa->regs.s3d.texAddr.ni.addr = (GLuint) t->texParams.hwPhysAddress >> 3; - if(t->heap == SAVAGE_AGP_HEAP) { - imesa->regs.s3d.texAddr.ni.inSysTex = 1; - imesa->regs.s3d.texAddr.ni.inAGPTex = 1; - } else { - imesa->regs.s3d.texAddr.ni.inSysTex = 0; - imesa->regs.s3d.texAddr.ni.inAGPTex = 1; - } + imesa->regs.s3d.texAddr.ui = (uint32_t) t->texParams.hwPhysAddress| 2; + if(t->heap == SAVAGE_AGP_HEAP) + imesa->regs.s3d.texAddr.ui |= 0x1; } |