• Home
  • Raw
  • Download

Lines Matching refs:nvc0

206    struct nvc0_context *nvc0 = nvc0_context(pipe);  in nvc0_resource_copy_region()  local
238 nvc0->m2mf_copy_rect(nvc0, &drect, &srect, nx, ny); in nvc0_resource_copy_region()
256 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(src), RD); in nvc0_resource_copy_region()
257 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(dst), WR); in nvc0_resource_copy_region()
258 nouveau_pushbuf_bufctx(nvc0->base.pushbuf, nvc0->bufctx); in nvc0_resource_copy_region()
259 nouveau_pushbuf_validate(nvc0->base.pushbuf); in nvc0_resource_copy_region()
262 ret = nvc0_2d_texture_do_copy(nvc0->base.pushbuf, in nvc0_resource_copy_region()
271 nouveau_bufctx_reset(nvc0->bufctx, 0); in nvc0_resource_copy_region()
281 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_clear_render_target() local
282 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_clear_render_target()
339 nvc0->dirty |= NVC0_NEW_FRAMEBUFFER; in nvc0_clear_render_target()
351 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_clear_depth_stencil() local
352 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_clear_depth_stencil()
396 nvc0->dirty |= NVC0_NEW_FRAMEBUFFER; in nvc0_clear_depth_stencil()
404 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_clear() local
405 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_clear()
406 struct pipe_framebuffer_state *fb = &nvc0->framebuffer; in nvc0_clear()
411 if (!nvc0_state_validate(nvc0, NVC0_NEW_FRAMEBUFFER, 9 + (fb->nr_cbufs * 2))) in nvc0_clear()
736 nvc0_blit_set_dst(struct nvc0_context *nvc0, in nvc0_blit_set_dst() argument
739 struct pipe_context *pipe = &nvc0->base.pipe; in nvc0_blit_set_dst()
751 nvc0->framebuffer.cbufs[0] = nvc0_miptree_surface_new(pipe, res, &templ); in nvc0_blit_set_dst()
752 nvc0->framebuffer.nr_cbufs = 1; in nvc0_blit_set_dst()
753 nvc0->framebuffer.zsbuf = NULL; in nvc0_blit_set_dst()
754 nvc0->framebuffer.width = nvc0->framebuffer.cbufs[0]->width; in nvc0_blit_set_dst()
755 nvc0->framebuffer.height = nvc0->framebuffer.cbufs[0]->height; in nvc0_blit_set_dst()
777 nvc0_blit_set_src(struct nvc0_context *nvc0, in nvc0_blit_set_src() argument
781 struct pipe_context *pipe = &nvc0->base.pipe; in nvc0_blit_set_src()
793 nvc0->textures[4][0] = nvc0_create_sampler_view(pipe, res, &templ); in nvc0_blit_set_src()
794 nvc0->textures[4][1] = NULL; in nvc0_blit_set_src()
796 nvc0_blit_fixup_tic_entry(nvc0->textures[4][0], filter); in nvc0_blit_set_src()
799 nvc0->num_textures[s] = 0; in nvc0_blit_set_src()
800 nvc0->num_textures[4] = 1; in nvc0_blit_set_src()
804 nvc0->textures[4][1] = nvc0_create_sampler_view(pipe, res, &templ); in nvc0_blit_set_src()
805 nvc0_blit_fixup_tic_entry(nvc0->textures[4][1], filter); in nvc0_blit_set_src()
806 nvc0->num_textures[4] = 2; in nvc0_blit_set_src()
852 nvc0_blitctx_pre_blit(struct nvc0_blitctx *blit, struct nvc0_context *nvc0) in nvc0_blitctx_pre_blit() argument
856 blit->saved.fb.width = nvc0->framebuffer.width; in nvc0_blitctx_pre_blit()
857 blit->saved.fb.height = nvc0->framebuffer.height; in nvc0_blitctx_pre_blit()
858 blit->saved.fb.nr_cbufs = nvc0->framebuffer.nr_cbufs; in nvc0_blitctx_pre_blit()
859 blit->saved.fb.cbufs[0] = nvc0->framebuffer.cbufs[0]; in nvc0_blitctx_pre_blit()
860 blit->saved.fb.zsbuf = nvc0->framebuffer.zsbuf; in nvc0_blitctx_pre_blit()
862 blit->saved.vp = nvc0->vertprog; in nvc0_blitctx_pre_blit()
863 blit->saved.tcp = nvc0->tctlprog; in nvc0_blitctx_pre_blit()
864 blit->saved.tep = nvc0->tevlprog; in nvc0_blitctx_pre_blit()
865 blit->saved.gp = nvc0->gmtyprog; in nvc0_blitctx_pre_blit()
866 blit->saved.fp = nvc0->fragprog; in nvc0_blitctx_pre_blit()
868 nvc0->vertprog = &blit->vp; in nvc0_blitctx_pre_blit()
869 nvc0->fragprog = &blit->fp; in nvc0_blitctx_pre_blit()
870 nvc0->tctlprog = NULL; in nvc0_blitctx_pre_blit()
871 nvc0->tevlprog = NULL; in nvc0_blitctx_pre_blit()
872 nvc0->gmtyprog = NULL; in nvc0_blitctx_pre_blit()
875 blit->saved.num_textures[s] = nvc0->num_textures[s]; in nvc0_blitctx_pre_blit()
876 blit->saved.num_samplers[s] = nvc0->num_samplers[s]; in nvc0_blitctx_pre_blit()
877 nvc0->textures_dirty[s] = (1 << nvc0->num_textures[s]) - 1; in nvc0_blitctx_pre_blit()
878 nvc0->samplers_dirty[s] = (1 << nvc0->num_samplers[s]) - 1; in nvc0_blitctx_pre_blit()
880 blit->saved.texture[0] = nvc0->textures[4][0]; in nvc0_blitctx_pre_blit()
881 blit->saved.texture[1] = nvc0->textures[4][1]; in nvc0_blitctx_pre_blit()
882 blit->saved.sampler[0] = nvc0->samplers[4][0]; in nvc0_blitctx_pre_blit()
883 blit->saved.sampler[1] = nvc0->samplers[4][1]; in nvc0_blitctx_pre_blit()
885 nvc0->samplers[4][0] = &blit->sampler[blit->filter]; in nvc0_blitctx_pre_blit()
886 nvc0->samplers[4][1] = &blit->sampler[blit->filter]; in nvc0_blitctx_pre_blit()
889 nvc0->num_samplers[s] = 0; in nvc0_blitctx_pre_blit()
890 nvc0->num_samplers[4] = 2; in nvc0_blitctx_pre_blit()
892 blit->saved.dirty = nvc0->dirty; in nvc0_blitctx_pre_blit()
894 nvc0->textures_dirty[4] |= 3; in nvc0_blitctx_pre_blit()
895 nvc0->samplers_dirty[4] |= 3; in nvc0_blitctx_pre_blit()
897 nvc0->dirty = NVC0_NEW_FRAMEBUFFER | in nvc0_blitctx_pre_blit()
904 nvc0_blitctx_post_blit(struct nvc0_context *nvc0, struct nvc0_blitctx *blit) in nvc0_blitctx_post_blit() argument
908 pipe_surface_reference(&nvc0->framebuffer.cbufs[0], NULL); in nvc0_blitctx_post_blit()
910 nvc0->framebuffer.width = blit->saved.fb.width; in nvc0_blitctx_post_blit()
911 nvc0->framebuffer.height = blit->saved.fb.height; in nvc0_blitctx_post_blit()
912 nvc0->framebuffer.nr_cbufs = blit->saved.fb.nr_cbufs; in nvc0_blitctx_post_blit()
913 nvc0->framebuffer.cbufs[0] = blit->saved.fb.cbufs[0]; in nvc0_blitctx_post_blit()
914 nvc0->framebuffer.zsbuf = blit->saved.fb.zsbuf; in nvc0_blitctx_post_blit()
916 nvc0->vertprog = blit->saved.vp; in nvc0_blitctx_post_blit()
917 nvc0->tctlprog = blit->saved.tcp; in nvc0_blitctx_post_blit()
918 nvc0->tevlprog = blit->saved.tep; in nvc0_blitctx_post_blit()
919 nvc0->gmtyprog = blit->saved.gp; in nvc0_blitctx_post_blit()
920 nvc0->fragprog = blit->saved.fp; in nvc0_blitctx_post_blit()
922 pipe_sampler_view_reference(&nvc0->textures[4][0], NULL); in nvc0_blitctx_post_blit()
923 pipe_sampler_view_reference(&nvc0->textures[4][1], NULL); in nvc0_blitctx_post_blit()
926 nvc0->num_textures[s] = blit->saved.num_textures[s]; in nvc0_blitctx_post_blit()
927 nvc0->num_samplers[s] = blit->saved.num_samplers[s]; in nvc0_blitctx_post_blit()
928 nvc0->textures_dirty[s] = (1 << nvc0->num_textures[s]) - 1; in nvc0_blitctx_post_blit()
929 nvc0->samplers_dirty[s] = (1 << nvc0->num_samplers[s]) - 1; in nvc0_blitctx_post_blit()
931 nvc0->textures[4][0] = blit->saved.texture[0]; in nvc0_blitctx_post_blit()
932 nvc0->textures[4][1] = blit->saved.texture[1]; in nvc0_blitctx_post_blit()
933 nvc0->samplers[4][0] = blit->saved.sampler[0]; in nvc0_blitctx_post_blit()
934 nvc0->samplers[4][1] = blit->saved.sampler[1]; in nvc0_blitctx_post_blit()
936 nvc0->textures_dirty[4] |= 3; in nvc0_blitctx_post_blit()
937 nvc0->samplers_dirty[4] |= 3; in nvc0_blitctx_post_blit()
939 nvc0->dirty = blit->saved.dirty | in nvc0_blitctx_post_blit()
952 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_resource_resolve() local
953 struct nvc0_screen *screen = nvc0->screen; in nvc0_resource_resolve()
971 nvc0_blitctx_pre_blit(blit, nvc0); in nvc0_resource_resolve()
973 nvc0_blit_set_dst(nvc0, dst, info->dst.level, info->dst.layer); in nvc0_resource_resolve()
974 nvc0_blit_set_src(nvc0, src, 0, info->src.layer, blit->filter); in nvc0_resource_resolve()
978 nvc0_state_validate(nvc0, ~0, 36); in nvc0_resource_resolve()
1048 nvc0_blitctx_post_blit(nvc0, blit); in nvc0_resource_resolve()
1074 nvc0_init_surface_functions(struct nvc0_context *nvc0) in nvc0_init_surface_functions() argument
1076 struct pipe_context *pipe = &nvc0->base.pipe; in nvc0_init_surface_functions()