Lines Matching refs:velems

1786 static void r300_vertex_psc(struct r300_vertex_element_state *velems)  in r300_vertex_psc()  argument
1788 struct r300_vertex_stream_state *vstream = &velems->vertex_stream; in r300_vertex_psc()
1796 for (i = 0; i < velems->count; i++) { in r300_vertex_psc()
1797 format = velems->velem[i].src_format; in r300_vertex_psc()
1833 struct r300_vertex_element_state *velems; in r300_create_vertex_elements_state() local
1848 velems = CALLOC_STRUCT(r300_vertex_element_state); in r300_create_vertex_elements_state()
1849 if (!velems) in r300_create_vertex_elements_state()
1852 velems->count = count; in r300_create_vertex_elements_state()
1853 memcpy(velems->velem, attribs, sizeof(struct pipe_vertex_element) * count); in r300_create_vertex_elements_state()
1858 r300_vertex_psc(velems); in r300_create_vertex_elements_state()
1861 velems->format_size[i] = in r300_create_vertex_elements_state()
1862 align(util_format_get_blocksize(velems->velem[i].src_format), 4); in r300_create_vertex_elements_state()
1863 velems->vertex_size_dwords += velems->format_size[i] / 4; in r300_create_vertex_elements_state()
1867 return velems; in r300_create_vertex_elements_state()
1874 struct r300_vertex_element_state *velems = state; in r300_bind_vertex_elements_state() local
1876 if (!velems) { in r300_bind_vertex_elements_state()
1880 r300->velems = velems; in r300_bind_vertex_elements_state()
1883 draw_set_vertex_elements(r300->draw, velems->count, velems->velem); in r300_bind_vertex_elements_state()
1887 UPDATE_STATE(&velems->vertex_stream, r300->vertex_stream_state); in r300_bind_vertex_elements_state()
1888 r300->vertex_stream_state.size = (1 + velems->vertex_stream.count) * 2; in r300_bind_vertex_elements_state()