Lines Matching refs:vb
37 nv30_emit_vtxattr(struct nv30_context *nv30, struct pipe_vertex_buffer *vb, in nv30_emit_vtxattr() argument
42 struct nv04_resource *res = nv04_resource(vb->buffer); in nv30_emit_vtxattr()
46 data = nouveau_resource_map_offset(&nv30->base, res, vb->buffer_offset + in nv30_emit_vtxattr()
93 struct pipe_vertex_buffer *vb; in nv30_prevalidate_vbufs() local
101 vb = &nv30->vtxbuf[i]; in nv30_prevalidate_vbufs()
102 if (!vb->stride || !vb->buffer) /* NOTE: user_buffer not implemented */ in nv30_prevalidate_vbufs()
104 buf = nv04_resource(vb->buffer); in nv30_prevalidate_vbufs()
107 if (!nouveau_resource_mapped_by_gpu(vb->buffer)) { in nv30_prevalidate_vbufs()
114 assert(vb->stride > vb->buffer_offset); in nv30_prevalidate_vbufs()
137 struct pipe_vertex_buffer *vb = &nv30->vtxbuf[b]; in nv30_update_user_vbufs() local
138 struct nv04_resource *buf = nv04_resource(vb->buffer); in nv30_update_user_vbufs()
143 if (!vb->stride) { in nv30_update_user_vbufs()
144 nv30_emit_vtxattr(nv30, vb, ve, i); in nv30_update_user_vbufs()
154 offset = vb->buffer_offset + ve->src_offset; in nv30_update_user_vbufs()
185 struct pipe_vertex_buffer *vb; in nv30_vbo_validate() local
207 vb = &nv30->vtxbuf[ve->vertex_buffer_index]; in nv30_vbo_validate()
209 if (likely(vb->stride) || nv30->vbo_fifo) in nv30_vbo_validate()
210 PUSH_DATA (push, (vb->stride << 8) | vertex->element[i].state); in nv30_vbo_validate()
225 vb = &nv30->vtxbuf[ve->vertex_buffer_index]; in nv30_vbo_validate()
228 res = nv04_resource(vb->buffer); in nv30_vbo_validate()
230 if (nv30->vbo_fifo || unlikely(vb->stride == 0)) { in nv30_vbo_validate()
232 nv30_emit_vtxattr(nv30, vb, ve, i); in nv30_vbo_validate()
236 offset = ve->src_offset + vb->buffer_offset; in nv30_vbo_validate()