From: Nicolai Haehnle Date: Fri, 13 May 2005 18:03:24 +0000 (+0000) Subject: Patch from Jeff Smith: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6ed129dfc4ccfd898d347543f745f0b7745e31d;p=mesa.git 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. --- diff --git a/src/mesa/drivers/dri/r300/r300_maos.c b/src/mesa/drivers/dri/r300/r300_maos.c index 938978d68a1..301b4b7575e 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)