Lines Matching refs:nv30
30 #include "nv30-40_3d.xml.h"
119 struct nv30_context *nv30 = nv30_context(pipe);
121 nv30->blend = hwcso;
122 nv30->dirty |= NV30_NEW_BLEND;
196 struct nv30_context *nv30 = nv30_context(pipe);
198 nv30->rast = hwcso;
199 nv30->dirty |= NV30_NEW_RASTERIZER;
266 struct nv30_context *nv30 = nv30_context(pipe);
268 nv30->zsa = hwcso;
269 nv30->dirty |= NV30_NEW_ZSA;
282 struct nv30_context *nv30 = nv30_context(pipe);
284 nv30->blend_colour = *bcol;
285 nv30->dirty |= NV30_NEW_BLEND_COLOUR;
292 struct nv30_context *nv30 = nv30_context(pipe);
294 nv30->stencil_ref = *sr;
295 nv30->dirty |= NV30_NEW_STENCIL_REF;
302 struct nv30_context *nv30 = nv30_context(pipe);
304 memcpy(nv30->clip.ucp, clip->ucp, sizeof(clip->ucp));
306 nv30->dirty |= NV30_NEW_CLIP;
312 struct nv30_context *nv30 = nv30_context(pipe);
314 nv30->sample_mask = sample_mask;
315 nv30->dirty |= NV30_NEW_SAMPLE_MASK;
322 struct nv30_context *nv30 = nv30_context(pipe);
337 pipe_resource_reference(&nv30->vertprog.constbuf, buf);
338 nv30->vertprog.constbuf_nr = size;
339 nv30->dirty |= NV30_NEW_VERTCONST;
342 pipe_resource_reference(&nv30->fragprog.constbuf, buf);
343 nv30->fragprog.constbuf_nr = size;
344 nv30->dirty |= NV30_NEW_FRAGCONST;
356 struct nv30_context *nv30 = nv30_context(pipe);
358 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_FB);
360 nv30->framebuffer = *fb;
361 nv30->dirty |= NV30_NEW_FRAMEBUFFER;
368 struct nv30_context *nv30 = nv30_context(pipe);
370 nv30->stipple = *stipple;
371 nv30->dirty |= NV30_NEW_STIPPLE;
378 struct nv30_context *nv30 = nv30_context(pipe);
380 nv30->scissor = *scissor;
381 nv30->dirty |= NV30_NEW_SCISSOR;
388 struct nv30_context *nv30 = nv30_context(pipe);
390 nv30->viewport = *vpt;
391 nv30->dirty |= NV30_NEW_VIEWPORT;
399 struct nv30_context *nv30 = nv30_context(pipe);
402 nouveau_bufctx_reset(nv30->bufctx, BUFCTX_VTXBUF);
405 pipe_resource_reference(&nv30->vtxbuf[i].buffer, vb[i].buffer);
406 for (; i < nv30->num_vtxbufs; ++i)
407 pipe_resource_reference(&nv30->vtxbuf[i].buffer, NULL);
409 memcpy(nv30->vtxbuf, vb, sizeof(*vb) * count);
410 nv30->num_vtxbufs = count;
412 nv30->dirty |= NV30_NEW_ARRAYS;
419 struct nv30_context *nv30 = nv30_context(pipe);
422 pipe_resource_reference(&nv30->idxbuf.buffer, ib->buffer);
423 nv30->idxbuf.index_size = ib->index_size;
424 nv30->idxbuf.offset = ib->offset;
425 nv30->idxbuf.user_buffer = ib->user_buffer;
427 pipe_resource_reference(&nv30->idxbuf.buffer, NULL);
428 nv30->idxbuf.user_buffer = NULL;