Lines Matching refs:nv30
198 nv30_push_vbo(struct nv30_context *nv30, const struct pipe_draw_info *info) in nv30_push_vbo() argument
204 ctx.push = nv30->base.pushbuf; in nv30_push_vbo()
205 ctx.translate = nv30->vertex->translate; in nv30_push_vbo()
206 ctx.packet_vertex_limit = nv30->vertex->vtx_per_packet_max; in nv30_push_vbo()
207 ctx.vertex_words = nv30->vertex->vtx_size; in nv30_push_vbo()
209 for (i = 0; i < nv30->num_vtxbufs; ++i) { in nv30_push_vbo()
211 struct pipe_vertex_buffer *vb = &nv30->vtxbuf[i]; in nv30_push_vbo()
214 data = nouveau_resource_map_offset(&nv30->base, res, in nv30_push_vbo()
224 if (nv30->idxbuf.buffer) in nv30_push_vbo()
225 ctx.idxbuf = nouveau_resource_map_offset(&nv30->base, in nv30_push_vbo()
226 nv04_resource(nv30->idxbuf.buffer), nv30->idxbuf.offset, in nv30_push_vbo()
229 ctx.idxbuf = nv30->idxbuf.user_buffer; in nv30_push_vbo()
231 nv30_state_release(nv30); in nv30_push_vbo()
234 index_size = nv30->idxbuf.index_size; in nv30_push_vbo()
244 if (nv30->screen->eng3d->oclass >= NV40_3D_CLASS) { in nv30_push_vbo()
248 nv30->state.prim_restart = info->primitive_restart; in nv30_push_vbo()
277 nouveau_resource_unmap(nv04_resource(nv30->idxbuf.buffer)); in nv30_push_vbo()
279 for (i = 0; i < nv30->num_vtxbufs; ++i) in nv30_push_vbo()
280 nouveau_resource_unmap(nv04_resource(nv30->vtxbuf[i].buffer)); in nv30_push_vbo()
282 nv30_state_release(nv30); in nv30_push_vbo()