r300g: upload only vertex buffers referenced by vertex elements