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