diff options
author | Ian Romanick <[email protected]> | 2004-03-17 20:50:12 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2004-03-17 20:50:12 +0000 |
commit | 16c704e8f7cd9b7d7c5d6667cb38e016e3b608d1 (patch) | |
tree | d3b07d3be78f379d76d36b17b06d3b74a8aa1079 /src/mesa/drivers/dri/gamma | |
parent | aae2fde0e6758769c11611d0951b2cb0e4ee24eb (diff) |
Convert all uses of CARD32 and CARD8 to int32_t and int8_t.
Diffstat (limited to 'src/mesa/drivers/dri/gamma')
-rw-r--r-- | src/mesa/drivers/dri/gamma/gamma_context.h | 38 | ||||
-rw-r--r-- | src/mesa/drivers/dri/gamma/gamma_render.c | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/gamma/gamma_span.c | 8 | ||||
-rw-r--r-- | src/mesa/drivers/dri/gamma/gamma_state.c | 34 | ||||
-rw-r--r-- | src/mesa/drivers/dri/gamma/gamma_tex.c | 8 | ||||
-rw-r--r-- | src/mesa/drivers/dri/gamma/gamma_tritmp.h | 16 |
6 files changed, 55 insertions, 55 deletions
diff --git a/src/mesa/drivers/dri/gamma/gamma_context.h b/src/mesa/drivers/dri/gamma/gamma_context.h index 028c0d8a0f1..233f5ff0647 100644 --- a/src/mesa/drivers/dri/gamma/gamma_context.h +++ b/src/mesa/drivers/dri/gamma/gamma_context.h @@ -160,13 +160,13 @@ struct gamma_texture_object_t { int internalFormat; } image[GAMMA_TEX_MAXLEVELS]; - CARD32 TextureBaseAddr[GAMMA_TEX_MAXLEVELS]; - CARD32 TextureAddressMode; - CARD32 TextureColorMode; - CARD32 TextureFilterMode; - CARD32 TextureFormat; - CARD32 TextureReadMode; - CARD32 TextureBorderColor; + int32_t TextureBaseAddr[GAMMA_TEX_MAXLEVELS]; + int32_t TextureAddressMode; + int32_t TextureColorMode; + int32_t TextureFilterMode; + int32_t TextureFormat; + int32_t TextureReadMode; + int32_t TextureBorderColor; }; #define GAMMA_NO_PALETTE 0x0 @@ -300,18 +300,18 @@ struct gamma_context { unsigned int lastStamp; - CARD32 ClearColor; - CARD32 Color; - CARD32 DitherMode; - CARD32 ClearDepth; - CARD32 FogMode; - CARD32 AreaStippleMode; - CARD32 LBReadFormat; - CARD32 LBWriteFormat; - CARD32 LineMode; - CARD32 PointMode; - CARD32 TriangleMode; - CARD32 AntialiasMode; + int32_t ClearColor; + int32_t Color; + int32_t DitherMode; + int32_t ClearDepth; + int32_t FogMode; + int32_t AreaStippleMode; + int32_t LBReadFormat; + int32_t LBWriteFormat; + int32_t LineMode; + int32_t PointMode; + int32_t TriangleMode; + int32_t AntialiasMode; GLfloat ViewportScaleX; GLfloat ViewportScaleY; GLfloat ViewportScaleZ; diff --git a/src/mesa/drivers/dri/gamma/gamma_render.c b/src/mesa/drivers/dri/gamma/gamma_render.c index a0b8a5dc185..aa2e284a4f4 100644 --- a/src/mesa/drivers/dri/gamma/gamma_render.c +++ b/src/mesa/drivers/dri/gamma/gamma_render.c @@ -74,7 +74,7 @@ static void gamma_emit( GLcontext *ctx, GLuint start, GLuint end) WRITEF(gmesa->buf, Tr4, tc0[i][2]); WRITEF(gmesa->buf, Tt4, tc0[i][0]); WRITEF(gmesa->buf, Ts4, tc0[i][1]); - WRITE(gmesa->buf, PackedColor4, *(CARD32*)col[i]); + WRITE(gmesa->buf, PackedColor4, *(int32_t*)col[i]); WRITEF(gmesa->buf, Vw, coord[i][3]); WRITEF(gmesa->buf, Vz, coord[i][2]); WRITEF(gmesa->buf, Vy, coord[i][1]); @@ -85,7 +85,7 @@ static void gamma_emit( GLcontext *ctx, GLuint start, GLuint end) CHECK_DMA_BUFFER(gmesa, 7); WRITEF(gmesa->buf, Tt2, tc0[i][0]); WRITEF(gmesa->buf, Ts2, tc0[i][1]); - WRITE(gmesa->buf, PackedColor4, *(CARD32*)col[i]); + WRITE(gmesa->buf, PackedColor4, *(int32_t*)col[i]); WRITEF(gmesa->buf, Vw, coord[i][3]); WRITEF(gmesa->buf, Vz, coord[i][2]); WRITEF(gmesa->buf, Vy, coord[i][1]); @@ -94,7 +94,7 @@ static void gamma_emit( GLcontext *ctx, GLuint start, GLuint end) } else { for (i=start; i < end; i++) { CHECK_DMA_BUFFER(gmesa, 4); - WRITE(gmesa->buf, PackedColor4, *(CARD32*)col[i]); + WRITE(gmesa->buf, PackedColor4, *(int32_t*)col[i]); WRITEF(gmesa->buf, Vz, coord[i][2]); WRITEF(gmesa->buf, Vy, coord[i][1]); WRITEF(gmesa->buf, Vx3, coord[i][0]); diff --git a/src/mesa/drivers/dri/gamma/gamma_span.c b/src/mesa/drivers/dri/gamma/gamma_span.c index 8d523c4b6f9..854172ebd3b 100644 --- a/src/mesa/drivers/dri/gamma/gamma_span.c +++ b/src/mesa/drivers/dri/gamma/gamma_span.c @@ -207,10 +207,10 @@ static void gammaReadRGBASpan8888( const GLcontext *ctx, { gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); gammaScreenPtr gammascrn = gmesa->gammaScreen; - CARD32 dwords1, dwords2, i = 0; + int32_t dwords1, dwords2, i = 0; char *src = (char *)rgba[0]; GLuint read = n * gammascrn->cpp; /* Number of bytes we are expecting */ - CARD32 data; + int32_t data; FLUSH_DMA_BUFFER(gmesa); CHECK_DMA_BUFFER(gmesa, 16); @@ -232,8 +232,8 @@ static void gammaReadRGBASpan8888( const GLcontext *ctx, moredata: - dwords1 = *(volatile CARD32*)(void *)(((CARD8*)gammascrn->regions[0].map) + (GlintOutFIFOWords)); - dwords2 = *(volatile CARD32*)(void *)(((CARD8*)gammascrn->regions[2].map) + (GlintOutFIFOWords)); + dwords1 = *(volatile int32_t*)(void *)(((int8_t*)gammascrn->regions[0].map) + (GlintOutFIFOWords)); + dwords2 = *(volatile int32_t*)(void *)(((int8_t*)gammascrn->regions[2].map) + (GlintOutFIFOWords)); if (dwords1) { memcpy(src, (char*)gammascrn->regions[1].map + 0x1000, dwords1 << 2); diff --git a/src/mesa/drivers/dri/gamma/gamma_state.c b/src/mesa/drivers/dri/gamma/gamma_state.c index 813ced474b3..6b87e44a017 100644 --- a/src/mesa/drivers/dri/gamma/gamma_state.c +++ b/src/mesa/drivers/dri/gamma/gamma_state.c @@ -44,9 +44,9 @@ static void gammaUpdateAlphaMode( GLcontext *ctx ) { gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); - CARD32 a = gmesa->AlphaTestMode; - CARD32 b = gmesa->AlphaBlendMode; - CARD32 f = gmesa->AB_FBReadMode_Save = 0; + int32_t a = gmesa->AlphaTestMode; + int32_t b = gmesa->AlphaBlendMode; + int32_t f = gmesa->AB_FBReadMode_Save = 0; GLubyte refByte = (GLint) (ctx->Color.AlphaRef * 255.0); a &= ~(AT_CompareMask | AT_RefValueMask); @@ -419,10 +419,10 @@ static void gammaDDClear( GLcontext *ctx, GLbitfield mask, GLboolean all, static void gammaUpdateZMode( GLcontext *ctx ) { gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); - CARD32 z = gmesa->DepthMode; - CARD32 delta = gmesa->DeltaMode; - CARD32 window = gmesa->Window; - CARD32 lbread = gmesa->LBReadMode; + int32_t z = gmesa->DepthMode; + int32_t delta = gmesa->DeltaMode; + int32_t window = gmesa->Window; + int32_t lbread = gmesa->LBReadMode; z &= ~DM_CompareMask; @@ -538,9 +538,9 @@ static void gammaDDFlush( GLcontext *ctx ) static void gammaUpdateFogAttrib( GLcontext *ctx ) { gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); - CARD32 f = gmesa->FogMode; - CARD32 g = gmesa->GeometryMode; - CARD32 d = gmesa->DeltaMode; + int32_t f = gmesa->FogMode; + int32_t g = gmesa->GeometryMode; + int32_t d = gmesa->DeltaMode; if (ctx->Fog.Enabled) { f |= FogModeEnable; @@ -634,7 +634,7 @@ static void gammaDDPointSize( GLcontext *ctx, GLfloat size ) static void gammaUpdatePolygon( GLcontext *ctx ) { gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); - CARD32 g = gmesa->GeometryMode; + int32_t g = gmesa->GeometryMode; g &= ~(GM_PolyOffsetFillEnable | GM_PolyOffsetPointEnable | GM_PolyOffsetLineEnable); @@ -752,7 +752,7 @@ static void gammaDDScissor( GLcontext *ctx, static void gammaUpdateCull( GLcontext *ctx ) { gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); - CARD32 g = gmesa->GeometryMode; + int32_t g = gmesa->GeometryMode; g &= ~(GM_PolyCullMask | GM_FFMask); @@ -972,8 +972,8 @@ static void gammaDDLightModelfv( GLcontext *ctx, GLenum pname, static void gammaDDShadeModel( GLcontext *ctx, GLenum mode ) { gammaContextPtr gmesa = GAMMA_CONTEXT(ctx); - CARD32 g = gmesa->GeometryMode; - CARD32 c = gmesa->ColorDDAMode; + int32_t g = gmesa->GeometryMode; + int32_t c = gmesa->ColorDDAMode; g &= ~GM_ShadingMask; c &= ~ColorDDAShadingMask; @@ -1240,7 +1240,7 @@ static void gammaDDEnable( GLcontext *ctx, GLenum cap, GLboolean state ) case GL_DITHER: do { - CARD32 d = gmesa->DitherMode; + int32_t d = gmesa->DitherMode; FLUSH_BATCH( gmesa ); if ( state ) { @@ -1272,7 +1272,7 @@ static void gammaDDEnable( GLcontext *ctx, GLenum cap, GLboolean state ) #if ENABLELIGHTING case GL_LIGHTING: do { - CARD32 l = gmesa->LightingMode; + int32_t l = gmesa->LightingMode; FLUSH_BATCH( gmesa ); if ( state ) { @@ -1290,7 +1290,7 @@ static void gammaDDEnable( GLcontext *ctx, GLenum cap, GLboolean state ) case GL_COLOR_MATERIAL: do { - CARD32 m = gmesa->MaterialMode; + int32_t m = gmesa->MaterialMode; FLUSH_BATCH( gmesa ); if ( state ) { diff --git a/src/mesa/drivers/dri/gamma/gamma_tex.c b/src/mesa/drivers/dri/gamma/gamma_tex.c index 4af99e4da4a..e4814e6daf9 100644 --- a/src/mesa/drivers/dri/gamma/gamma_tex.c +++ b/src/mesa/drivers/dri/gamma/gamma_tex.c @@ -32,8 +32,8 @@ static GLuint gammaComputeLodBias(GLfloat bias) static void gammaSetTexWrapping(gammaTextureObjectPtr t, GLenum wraps, GLenum wrapt) { - CARD32 t1 = t->TextureAddressMode; - CARD32 t2 = t->TextureReadMode; + int32_t t1 = t->TextureAddressMode; + int32_t t2 = t->TextureReadMode; t1 &= ~(TAM_SWrap_Mask | TAM_TWrap_Mask); t2 &= ~(TRM_UWrap_Mask | TRM_VWrap_Mask); @@ -58,8 +58,8 @@ static void gammaSetTexFilter(gammaContextPtr gmesa, GLenum minf, GLenum magf, GLfloat bias) { - CARD32 t1 = t->TextureAddressMode; - CARD32 t2 = t->TextureReadMode; + int32_t t1 = t->TextureAddressMode; + int32_t t2 = t->TextureReadMode; t2 &= ~(TRM_Mag_Mask | TRM_Min_Mask); diff --git a/src/mesa/drivers/dri/gamma/gamma_tritmp.h b/src/mesa/drivers/dri/gamma/gamma_tritmp.h index d0dbd1d6e7c..3a6d8d2071d 100644 --- a/src/mesa/drivers/dri/gamma/gamma_tritmp.h +++ b/src/mesa/drivers/dri/gamma/gamma_tritmp.h @@ -1,8 +1,8 @@ static void TAG(gamma_point)( gammaContextPtr gmesa, const gammaVertex *v0 ) { - CARD32 vColor; - CARD32 vBegin; + int32_t vColor; + int32_t vBegin; vBegin = gmesa->Begin | B_PrimType_Points; @@ -55,8 +55,8 @@ static void TAG(gamma_line)( gammaContextPtr gmesa, const gammaVertex *v0, const gammaVertex *v1 ) { - CARD32 vColor; - CARD32 vBegin; + int32_t vColor; + int32_t vBegin; vBegin = gmesa->Begin | B_PrimType_Lines; @@ -164,8 +164,8 @@ static void TAG(gamma_triangle)( gammaContextPtr gmesa, const gammaVertex *v1, const gammaVertex *v2 ) { - CARD32 vColor; - CARD32 vBegin; + int32_t vColor; + int32_t vBegin; vBegin = gmesa->Begin | B_PrimType_Triangles; @@ -309,8 +309,8 @@ static void TAG(gamma_quad)( gammaContextPtr gmesa, const gammaVertex *v2, const gammaVertex *v3 ) { - CARD32 vColor; - CARD32 vBegin; + int32_t vColor; + int32_t vBegin; vBegin = gmesa->Begin | B_PrimType_Quads; |