Lines Matching refs:nv30
27 struct nv30_context *nv30, enum nv30_transfer_filter filter, \
57 if (nv30->screen->eng3d->oclass < NV40_3D_CLASS) in nv30_transfer_blit()
71 nv30_transfer_rect_vertprog(struct nv30_context *nv30) in nv30_transfer_rect_vertprog() argument
73 struct nouveau_heap *heap = nv30->screen->vp_exec_heap; in nv30_transfer_rect_vertprog()
76 vp = nv30->blit_vp; in nv30_transfer_rect_vertprog()
78 if (nouveau_heap_alloc(heap, 2, &nv30->blit_vp, &nv30->blit_vp)) { in nv30_transfer_rect_vertprog()
84 if (nouveau_heap_alloc(heap, 2, &nv30->blit_vp, &nv30->blit_vp)) in nv30_transfer_rect_vertprog()
88 vp = nv30->blit_vp; in nv30_transfer_rect_vertprog()
90 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_transfer_rect_vertprog()
112 nv30_transfer_rect_fragprog(struct nv30_context *nv30) in nv30_transfer_rect_fragprog() argument
114 struct nv04_resource *fp = nv04_resource(nv30->blit_fp); in nv30_transfer_rect_fragprog()
115 struct pipe_context *pipe = &nv30->base.pipe; in nv30_transfer_rect_fragprog()
118 nv30->blit_fp = pipe_buffer_create(pipe->screen, 0, 0, 12 * 4); in nv30_transfer_rect_fragprog()
119 if (nv30->blit_fp) { in nv30_transfer_rect_fragprog()
121 u32 *map = pipe_buffer_map(pipe, nv30->blit_fp, in nv30_transfer_rect_fragprog()
135 fp = nv04_resource(nv30->blit_fp); in nv30_transfer_rect_fragprog()
136 nouveau_buffer_migrate(&nv30->base, fp, NOUVEAU_BO_VRAM); in nv30_transfer_rect_fragprog()
146 struct nv04_resource *fp = nv30_transfer_rect_fragprog(nv30); in nv30_transfer_rect_blit()
147 struct nouveau_heap *vp = nv30_transfer_rect_vertprog(nv30); in nv30_transfer_rect_blit()
148 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_transfer_rect_blit()
209 nv30->dirty |= NV30_NEW_FRAMEBUFFER; in nv30_transfer_rect_blit()
225 nv30->dirty |= NV30_NEW_VIEWPORT; in nv30_transfer_rect_blit()
237 nv30->dirty |= NV30_NEW_BLEND; in nv30_transfer_rect_blit()
250 nv30->dirty |= NV30_NEW_ZSA; in nv30_transfer_rect_blit()
265 nv30->state.scissor_off = 0; in nv30_transfer_rect_blit()
266 nv30->dirty |= NV30_NEW_RASTERIZER; in nv30_transfer_rect_blit()
279 nv30->dirty |= NV30_NEW_VERTPROG; in nv30_transfer_rect_blit()
280 nv30->dirty |= NV30_NEW_CLIP; in nv30_transfer_rect_blit()
291 nv30->state.fragprog = NULL; in nv30_transfer_rect_blit()
292 nv30->dirty |= NV30_NEW_FRAGPROG; in nv30_transfer_rect_blit()
334 nv30->fragprog.dirty_samplers |= 1; in nv30_transfer_rect_blit()
335 nv30->dirty |= NV30_NEW_FRAGTEX; in nv30_transfer_rect_blit()
400 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_transfer_rect_sifm()
447 PUSH_DATA (push, nv30->screen->surf2d->handle); in nv30_transfer_rect_sifm()
456 PUSH_DATA (push, nv30->screen->swzsurf->handle); in nv30_transfer_rect_sifm()
497 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_transfer_rect_m2mf()
637 nouveau_bo_map(src->bo, NOUVEAU_BO_RD, nv30->base.client); in nv30_transfer_rect_cpu()
638 nouveau_bo_map(dst->bo, NOUVEAU_BO_WR, nv30->base.client); in nv30_transfer_rect_cpu()
651 nv30_transfer_rect(struct nv30_context *nv30, enum nv30_transfer_filter filter, in nv30_transfer_rect() argument
668 if (method->possible(nv30, filter, src, dst)) { in nv30_transfer_rect()
669 method->execute(nv30, filter, src, dst); in nv30_transfer_rect()