From a6ed129dfc4ccfd898d347543f745f0b7745e31d Mon Sep 17 00:00:00 2001 From: Nicolai Haehnle Date: Fri, 13 May 2005 18:03:24 +0000 Subject: [PATCH] Patch from Jeff Smith: The type of vertex data is opaque in the emit_* functions, so use GLvoid* instead of char*. This also eliminates some compiler warnings. --- src/mesa/drivers/dri/r300/r300_maos.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/r300/r300_maos.c b/src/mesa/drivers/dri/r300/r300_maos.c index 938978d..301b4b7 100644 --- a/src/mesa/drivers/dri/r300/r300_maos.c +++ b/src/mesa/drivers/dri/r300/r300_maos.c @@ -75,7 +75,7 @@ do { \ static void emit_vec4(GLcontext * ctx, struct r300_dma_region *rvb, - char *data, int stride, int count) + GLvoid *data, int stride, int count) { int i; int *out = (int *)(rvb->address + rvb->start); @@ -96,7 +96,7 @@ static void emit_vec4(GLcontext * ctx, static void emit_vec8(GLcontext * ctx, struct r300_dma_region *rvb, - char *data, int stride, int count) + GLvoid *data, int stride, int count) { int i; int *out = (int *)(rvb->address + rvb->start); @@ -118,7 +118,7 @@ static void emit_vec8(GLcontext * ctx, static void emit_vec12(GLcontext * ctx, struct r300_dma_region *rvb, - char *data, int stride, int count) + GLvoid *data, int stride, int count) { int i; int *out = (int *)(rvb->address + rvb->start); @@ -141,7 +141,7 @@ static void emit_vec12(GLcontext * ctx, static void emit_vec16(GLcontext * ctx, struct r300_dma_region *rvb, - char *data, int stride, int count) + GLvoid *data, int stride, int count) { int i; int *out = (int *)(rvb->address + rvb->start); @@ -165,7 +165,7 @@ static void emit_vec16(GLcontext * ctx, static void emit_vector(GLcontext * ctx, struct r300_dma_region *rvb, - char *data, int size, int stride, int count) + GLvoid *data, int size, int stride, int count) { r300ContextPtr rmesa = R300_CONTEXT(ctx); @@ -175,7 +175,7 @@ static void emit_vector(GLcontext * ctx, if(r300IsGartMemory(rmesa, data, size*stride)){ rvb->address = rmesa->radeon.radeonScreen->gartTextures.map; - rvb->start = data - rvb->address; + rvb->start = (char *)data - rvb->address; rvb->aos_offset = r300GartOffsetFromVirtual(rmesa, data); if(stride == 0) -- 2.7.4