Lines Matching refs:nv30

33 #include "nv30-40_3d.xml.h"
39 struct nv30_context *nv30;
72 struct nv30_context *nv30 = r->nv30;
78 r->buffer = pipe_buffer_create(&nv30->screen->base.base,
94 char *map = pipe_buffer_map(&r->nv30->base.pipe, r->buffer,
105 pipe_buffer_unmap(&r->nv30->base.pipe, r->transfer);
121 struct nv30_context *nv30 = r->nv30;
122 struct nouveau_pushbuf *push = nv30->screen->base.pushbuf;
132 if (!nv30_state_validate(nv30, FALSE))
164 struct nv30_context *nv30 = r->nv30;
165 struct nouveau_pushbuf *push = nv30->base.pushbuf;
177 if (!nv30_state_validate(nv30, FALSE))
222 struct pipe_screen *pscreen = &r->nv30->screen->base.base;
223 struct nv30_fragprog *fp = r->nv30->fragprog.program;
267 nv30_render_validate(struct nv30_context *nv30)
269 struct nv30_render *r = nv30_render(nv30->draw->render);
270 struct nv30_rasterizer_stateobj *rast = nv30->rast;
271 struct pipe_screen *pscreen = &nv30->screen->base.base;
272 struct nouveau_pushbuf *push = nv30->screen->base.pushbuf;
273 struct nouveau_object *eng3d = nv30->screen->eng3d;
274 struct nv30_vertprog *vp = nv30->vertprog.program;
367 struct nv30_context *nv30 = nv30_context(pipe);
368 struct draw_context *draw = nv30->draw;
373 nv30_render_validate(nv30);
375 if (nv30->draw_dirty & NV30_NEW_VIEWPORT)
376 draw_set_viewport_state(draw, &nv30->viewport);
377 if (nv30->draw_dirty & NV30_NEW_RASTERIZER)
378 draw_set_rasterizer_state(draw, &nv30->rast->pipe, NULL);
379 if (nv30->draw_dirty & NV30_NEW_CLIP)
380 draw_set_clip_state(draw, &nv30->clip);
381 if (nv30->draw_dirty & NV30_NEW_ARRAYS) {
382 draw_set_vertex_buffers(draw, nv30->num_vtxbufs, nv30->vtxbuf);
383 draw_set_vertex_elements(draw, nv30->vertex->num_elements, nv30->vertex->pipe);
385 if (nv30->draw_dirty & NV30_NEW_FRAGPROG) {
386 struct nv30_fragprog *fp = nv30->fragprog.program;
391 if (nv30->draw_dirty & NV30_NEW_VERTPROG) {
392 struct nv30_vertprog *vp = nv30->vertprog.program;
397 if (nv30->draw_dirty & NV30_NEW_VERTCONST) {
398 if (nv30->vertprog.constbuf) {
399 void *map = nv04_resource(nv30->vertprog.constbuf)->data;
401 map, nv30->vertprog.constbuf_nr);
405 for (i = 0; i < nv30->num_vtxbufs; i++) {
406 const void *map = nv30->vtxbuf[i].user_buffer;
408 map = pipe_buffer_map(pipe, nv30->vtxbuf[i].buffer,
415 const void *map = nv30->idxbuf.user_buffer;
417 pipe_buffer_map(pipe, nv30->idxbuf.buffer,
421 (ubyte *) map + nv30->idxbuf.offset,
422 nv30->idxbuf.index_size);
432 for (i = 0; i < nv30->num_vtxbufs; i++)
436 nv30->draw_dirty = 0;
437 nv30_state_release(nv30);
447 nv30_render_create(struct nv30_context *nv30)
453 r->nv30 = nv30;
474 struct nv30_context *nv30 = nv30_context(pipe);
483 render = nv30_render_create(nv30);
501 nv30->draw = draw;