• Home
  • Raw
  • Download

Lines Matching refs:nvc0

39 init_push_context(struct nvc0_context *nvc0, struct push_context *ctx)  in init_push_context()  argument
43 ctx->push = nvc0->base.pushbuf; in init_push_context()
44 ctx->translate = nvc0->vertex->translate; in init_push_context()
46 if (likely(nvc0->vertex->num_elements < 32)) in init_push_context()
47 ctx->need_vertex_id = nvc0->vertprog->vp.need_vertex_id; in init_push_context()
54 if (unlikely(nvc0->vertprog->vp.edgeflag < PIPE_MAX_ATTRIBS)) { in init_push_context()
55 ve = &nvc0->vertex->element[nvc0->vertprog->vp.edgeflag].pipe; in init_push_context()
60 ctx->packet_vertex_limit = nvc0->vertex->vtx_per_packet_max; in init_push_context()
65 ctx->vertex_words = nvc0->vertex->vtx_size; in init_push_context()
298 nvc0_push_vbo(struct nvc0_context *nvc0, const struct pipe_draw_info *info) in nvc0_push_vbo() argument
306 init_push_context(nvc0, &ctx); in nvc0_push_vbo()
308 for (i = 0; i < nvc0->num_vtxbufs; ++i) { in nvc0_push_vbo()
310 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[i]; in nvc0_push_vbo()
313 data = nouveau_resource_map_offset(&nvc0->base, res, in nvc0_push_vbo()
316 if (apply_bias && likely(!(nvc0->vertex->instance_bufs & (1 << i)))) in nvc0_push_vbo()
329 nouveau_resource_map_offset(&nvc0->base, in nvc0_push_vbo()
330 nv04_resource(nvc0->idxbuf.buffer), in nvc0_push_vbo()
331 nvc0->idxbuf.offset, NOUVEAU_BO_RD); in nvc0_push_vbo()
334 index_size = nvc0->idxbuf.index_size; in nvc0_push_vbo()
344 struct pipe_context *pipe = &nvc0->base.pipe; in nvc0_push_vbo()
356 const unsigned a = nvc0->vertex->num_elements; in nvc0_push_vbo()
395 const unsigned a = nvc0->vertex->num_elements; in nvc0_push_vbo()
405 nouveau_resource_unmap(nv04_resource(nvc0->idxbuf.buffer)); in nvc0_push_vbo()
407 for (i = 0; i < nvc0->num_vtxbufs; ++i) in nvc0_push_vbo()
408 nouveau_resource_unmap(nv04_resource(nvc0->vtxbuf[i].buffer)); in nvc0_push_vbo()