i965: Zero the offset into the vbo when uploading non-interleaved
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Feb 2011 11:18:25 +0000 (11:18 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Feb 2011 11:24:34 +0000 (11:24 +0000)
Fixes regression from 559435d9152acc7162e4e60aae6591c7c6c8274b.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_draw_upload.c

index b15c05a7ad192c2c2ec9244a38ae076b1a518f7c..6ea877bfbc4c4114579f17e1591d121d7a32503f 100644 (file)
@@ -454,6 +454,7 @@ static void brw_prepare_vertices(struct brw_context *brw)
                              upload[i], &brw->vb.buffers[j],
                              upload[i]->element_size);
       upload[i]->buffer = j++;
+      upload[i]->offset = 0;
    }
 
    /* can we simply extend the current vb? */