Lines Matching refs:r300render
907 struct r300_render* r300render = r300_render(render); in r300_render_get_vertex_info() local
908 struct r300_context* r300 = r300render->r300; in r300_render_get_vertex_info()
917 struct r300_render* r300render = r300_render(render); in r300_render_allocate_vertices() local
918 struct r300_context* r300 = r300render->r300; in r300_render_allocate_vertices()
935 r300render->vertex_size = vertex_size; in r300_render_allocate_vertices()
942 struct r300_render* r300render = r300_render(render); in r300_render_map_vertices() local
943 struct r300_context* r300 = r300render->r300; in r300_render_map_vertices()
945 assert(!r300render->vbo_transfer); in r300_render_map_vertices()
949 r300render->vbo_ptr = pipe_buffer_map(&r300render->r300->context, in r300_render_map_vertices()
953 &r300render->vbo_transfer); in r300_render_map_vertices()
955 assert(r300render->vbo_ptr); in r300_render_map_vertices()
957 return ((uint8_t*)r300render->vbo_ptr + r300->draw_vbo_offset); in r300_render_map_vertices()
964 struct r300_render* r300render = r300_render(render); in r300_render_unmap_vertices() local
965 struct pipe_context* context = &r300render->r300->context; in r300_render_unmap_vertices()
966 struct r300_context* r300 = r300render->r300; in r300_render_unmap_vertices()
968 assert(r300render->vbo_transfer); in r300_render_unmap_vertices()
972 r300render->vbo_max_used = MAX2(r300render->vbo_max_used, in r300_render_unmap_vertices()
973 r300render->vertex_size * (max + 1)); in r300_render_unmap_vertices()
974 pipe_buffer_unmap(context, r300render->vbo_transfer); in r300_render_unmap_vertices()
976 r300render->vbo_transfer = NULL; in r300_render_unmap_vertices()
981 struct r300_render* r300render = r300_render(render); in r300_render_release_vertices() local
982 struct r300_context* r300 = r300render->r300; in r300_render_release_vertices()
986 r300->draw_vbo_offset += r300render->vbo_max_used; in r300_render_release_vertices()
987 r300render->vbo_max_used = 0; in r300_render_release_vertices()
993 struct r300_render* r300render = r300_render(render); in r300_render_set_primitive() local
995 r300render->prim = prim; in r300_render_set_primitive()
996 r300render->hwprim = r300_translate_primitive(prim); in r300_render_set_primitive()
1003 struct r300_render* r300render = r300_render(render); in r300_render_draw_arrays() local
1004 struct r300_context* r300 = r300render->r300; in r300_render_draw_arrays()
1028 r300_provoking_vertex_fixes(r300, r300render->prim)); in r300_render_draw_arrays()
1032 r300render->hwprim); in r300_render_draw_arrays()
1042 struct r300_render* r300render = r300_render(render); in r300_render_draw_elements() local
1043 struct r300_context* r300 = r300render->r300; in r300_render_draw_elements()
1047 (r300render->r300->vertex_info.size * 4) - 1; in r300_render_draw_elements()
1078 r300_provoking_vertex_fixes(r300, r300render->prim)); in r300_render_draw_elements()
1082 r300render->hwprim); in r300_render_draw_elements()
1116 struct r300_render* r300render = CALLOC_STRUCT(r300_render); in r300_render_create() local
1118 r300render->r300 = r300; in r300_render_create()
1120 r300render->base.max_vertex_buffer_bytes = 1024 * 1024; in r300_render_create()
1121 r300render->base.max_indices = 16 * 1024; in r300_render_create()
1123 r300render->base.get_vertex_info = r300_render_get_vertex_info; in r300_render_create()
1124 r300render->base.allocate_vertices = r300_render_allocate_vertices; in r300_render_create()
1125 r300render->base.map_vertices = r300_render_map_vertices; in r300_render_create()
1126 r300render->base.unmap_vertices = r300_render_unmap_vertices; in r300_render_create()
1127 r300render->base.set_primitive = r300_render_set_primitive; in r300_render_create()
1128 r300render->base.draw_elements = r300_render_draw_elements; in r300_render_create()
1129 r300render->base.draw_arrays = r300_render_draw_arrays; in r300_render_create()
1130 r300render->base.release_vertices = r300_render_release_vertices; in r300_render_create()
1131 r300render->base.destroy = r300_render_destroy; in r300_render_create()
1133 return &r300render->base; in r300_render_create()