summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorNicolai Haehnle <[email protected]>2005-05-13 18:03:24 +0000
committerNicolai Haehnle <[email protected]>2005-05-13 18:03:24 +0000
commita6ed129dfc4ccfd898d347543f745f0b7745e31d (patch)
treece0d2c98be39c3de447755f3ab30761e2ec89554 /src/mesa/drivers
parent733bc876eeb7bc09136651bffe74c70c35d714b4 (diff)
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.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r300/r300_maos.c12
1 files 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 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)