Lines Matching refs:nv50
209 nv50_push_vbo(struct nv50_context *nv50, const struct pipe_draw_info *info)
217 ctx.push = nv50->base.pushbuf;
218 ctx.translate = nv50->vertex->translate;
219 ctx.packet_vertex_limit = nv50->vertex->packet_vertex_limit;
220 ctx.vertex_words = nv50->vertex->vertex_size;
222 for (i = 0; i < nv50->num_vtxbufs; ++i) {
223 const struct pipe_vertex_buffer *vb = &nv50->vtxbuf[i];
227 data = nouveau_resource_map_offset(&nv50->base,
232 if (apply_bias && likely(!(nv50->vertex->instance_bufs & (1 << i))))
239 if (nv50->idxbuf.buffer) {
240 ctx.idxbuf = nouveau_resource_map_offset(&nv50->base,
241 nv04_resource(nv50->idxbuf.buffer), nv50->idxbuf.offset,
244 ctx.idxbuf = nv50->idxbuf.user_buffer;
248 index_size = nv50->idxbuf.index_size;
253 struct pipe_context *pipe = &nv50->base.pipe;
277 if (nv50->state.prim_restart) {
281 nv50->state.prim_restart = info->primitive_restart;