nv50: fixed void pointer arithment warning
authorBrian Paul <brianp@vmware.com>
Tue, 20 Apr 2010 16:09:55 +0000 (10:09 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 20 Apr 2010 16:10:48 +0000 (10:10 -0600)
src/gallium/drivers/nv50/nv50_transfer.c

index 9fefed4fef91beb1131e0f5d1888245f6bc48224..c5581a6f9d080e1034b71f7373351481efcf84d6 100644 (file)
@@ -344,7 +344,7 @@ nv50_upload_sifc(struct nv50_context *nv50,
                        count -= nr;
                }
 
-               src += src_pitch;
+               src = (uint8_t *) src + src_pitch;
        }
 
        BEGIN_RING(chan, tesla, NV50TCL_CODE_CB_FLUSH, 1);