summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/gamma/gamma_span.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2004-03-17 20:50:12 +0000
committerIan Romanick <idr@us.ibm.com>2004-03-17 20:50:12 +0000
commit16c704e8f7cd9b7d7c5d6667cb38e016e3b608d1 (patch)
treed3b07d3be78f379d76d36b17b06d3b74a8aa1079 /src/mesa/drivers/dri/gamma/gamma_span.c
parentaae2fde0e6758769c11611d0951b2cb0e4ee24eb (diff)
Convert all uses of CARD32 and CARD8 to int32_t and int8_t.
Diffstat (limited to 'src/mesa/drivers/dri/gamma/gamma_span.c')
-rw-r--r--src/mesa/drivers/dri/gamma/gamma_span.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/gamma/gamma_span.c b/src/mesa/drivers/dri/gamma/gamma_span.c
index 8d523c4b6f..854172ebd3 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);