gallium: standardize on stride instead of pitch in the interface
[mesa.git] / src / gallium / drivers / i965simple / brw_draw_upload.c
index 7c20ea52af5b6d8f60636ed83a1e18edad2837d1..2d9ca3f2ea02f53462c477b8506c06c307321a17 100644 (file)
@@ -223,7 +223,7 @@ boolean brw_upload_vertex_buffers( struct brw_context *brw )
         break;
       }
 
-      vbp.vb[i].vb0.bits.pitch = brw->vb.vbo_array[i]->pitch;
+      vbp.vb[i].vb0.bits.pitch = brw->vb.vbo_array[i]->stride;
       vbp.vb[i].vb0.bits.pad = 0;
       vbp.vb[i].vb0.bits.access_type = BRW_VERTEXBUFFER_ACCESS_VERTEXDATA;
       vbp.vb[i].vb0.bits.vb_index = i;