Lines Matching defs:nv50
199 struct nv50_context *nv50 = nv50_context(pipe);
231 nv50_m2mf_transfer_rect(nv50, &drect, &srect, nx, ny);
250 BCTX_REFN(nv50->bufctx, 2D, nv04_resource(src), RD);
251 BCTX_REFN(nv50->bufctx, 2D, nv04_resource(dst), WR);
252 nouveau_pushbuf_bufctx(nv50->base.pushbuf, nv50->bufctx);
253 nouveau_pushbuf_validate(nv50->base.pushbuf);
256 ret = nv50_2d_texture_do_copy(nv50->base.pushbuf,
265 nouveau_bufctx_reset(nv50->bufctx, NV50_BIND_2D);
275 struct nv50_context *nv50 = nv50_context(pipe);
276 struct nouveau_pushbuf *push = nv50->base.pushbuf;
321 nv50->dirty |= NV50_NEW_FRAMEBUFFER;
333 struct nv50_context *nv50 = nv50_context(pipe);
334 struct nouveau_pushbuf *push = nv50->base.pushbuf;
377 nv50->dirty |= NV50_NEW_FRAMEBUFFER;
385 struct nv50_context *nv50 = nv50_context(pipe);
386 struct nouveau_pushbuf *push = nv50->base.pushbuf;
387 struct pipe_framebuffer_state *fb = &nv50->framebuffer;
392 if (!nv50_state_validate(nv50, NV50_NEW_FRAMEBUFFER, 9 + (fb->nr_cbufs * 2)))
670 nv50_blit_set_dst(struct nv50_context *nv50,
673 struct pipe_context *pipe = &nv50->base.pipe;
685 nv50->framebuffer.cbufs[0] = nv50_miptree_surface_new(pipe, res, &templ);
686 nv50->framebuffer.nr_cbufs = 1;
687 nv50->framebuffer.zsbuf = NULL;
688 nv50->framebuffer.width = nv50->framebuffer.cbufs[0]->width;
689 nv50->framebuffer.height = nv50->framebuffer.cbufs[0]->height;
705 nv50_blit_set_src(struct nv50_context *nv50,
708 struct pipe_context *pipe = &nv50->base.pipe;
719 nv50->textures[2][0] = nv50_create_sampler_view(pipe, res, &templ);
720 nv50->textures[2][1] = NULL;
722 nv50_blit_fixup_tic_entry(nv50->textures[2][0]);
724 nv50->num_textures[0] = nv50->num_textures[1] = 0;
725 nv50->num_textures[2] = 1;
729 nv50->textures[2][1] = nv50_create_sampler_view(pipe, res, &templ);
730 nv50_blit_fixup_tic_entry(nv50->textures[2][1]);
731 nv50->num_textures[2] = 2;
785 nv50_blitctx_pre_blit(struct nv50_blitctx *blit, struct nv50_context *nv50)
789 blit->saved.fb.width = nv50->framebuffer.width;
790 blit->saved.fb.height = nv50->framebuffer.height;
791 blit->saved.fb.nr_cbufs = nv50->framebuffer.nr_cbufs;
792 blit->saved.fb.cbufs[0] = nv50->framebuffer.cbufs[0];
793 blit->saved.fb.zsbuf = nv50->framebuffer.zsbuf;
795 blit->saved.vp = nv50->vertprog;
796 blit->saved.gp = nv50->gmtyprog;
797 blit->saved.fp = nv50->fragprog;
799 nv50->vertprog = &blit->vp;
800 nv50->gmtyprog = NULL;
801 nv50->fragprog = &blit->fp;
804 blit->saved.num_textures[s] = nv50->num_textures[s];
805 blit->saved.num_samplers[s] = nv50->num_samplers[s];
807 blit->saved.texture[0] = nv50->textures[2][0];
808 blit->saved.texture[1] = nv50->textures[2][1];
809 blit->saved.sampler[0] = nv50->samplers[2][0];
810 blit->saved.sampler[1] = nv50->samplers[2][1];
812 nv50->samplers[2][0] = &blit->sampler[blit->filter];
813 nv50->samplers[2][1] = &blit->sampler[blit->filter];
815 nv50->num_samplers[0] = nv50->num_samplers[1] = 0;
816 nv50->num_samplers[2] = 2;
818 blit->saved.dirty = nv50->dirty;
820 nv50->dirty =
827 nv50_blitctx_post_blit(struct nv50_context *nv50, struct nv50_blitctx *blit)
831 pipe_surface_reference(&nv50->framebuffer.cbufs[0], NULL);
833 nv50->framebuffer.width = blit->saved.fb.width;
834 nv50->framebuffer.height = blit->saved.fb.height;
835 nv50->framebuffer.nr_cbufs = blit->saved.fb.nr_cbufs;
836 nv50->framebuffer.cbufs[0] = blit->saved.fb.cbufs[0];
837 nv50->framebuffer.zsbuf = blit->saved.fb.zsbuf;
839 nv50->vertprog = blit->saved.vp;
840 nv50->gmtyprog = blit->saved.gp;
841 nv50->fragprog = blit->saved.fp;
843 pipe_sampler_view_reference(&nv50->textures[2][0], NULL);
844 pipe_sampler_view_reference(&nv50->textures[2][1], NULL);
847 nv50->num_textures[s] = blit->saved.num_textures[s];
848 nv50->num_samplers[s] = blit->saved.num_samplers[s];
850 nv50->textures[2][0] = blit->saved.texture[0];
851 nv50->textures[2][1] = blit->saved.texture[1];
852 nv50->samplers[2][0] = blit->saved.sampler[0];
853 nv50->samplers[2][1] = blit->saved.sampler[1];
855 nv50->dirty = blit->saved.dirty |
866 struct nv50_context *nv50 = nv50_context(pipe);
867 struct nv50_screen *screen = nv50->screen;
869 struct nouveau_pushbuf *push = nv50->base.pushbuf;
879 nv50_blitctx_pre_blit(blit, nv50);
881 nv50_blit_set_dst(nv50, dst, info->dst.level, info->dst.layer);
882 nv50_blit_set_src(nv50, src, 0, info->src.layer);
886 nv50_state_validate(nv50, ~0, 36);
956 nv50_blitctx_post_blit(nv50, blit);
981 nv50_init_surface_functions(struct nv50_context *nv50)
983 struct pipe_context *pipe = &nv50->base.pipe;