mesa: Factor out struct gl_vertex_format.