gallium/cso_context: move non-vbuf vertex buffer and element code into helpers