Lines Matching defs:pctx
207 v3d_tfu(struct pipe_context *pctx,
217 struct v3d_context *v3d = v3d_context(pctx);
340 v3d_generate_mipmap(struct pipe_context *pctx,
357 return v3d_tfu(pctx,
366 v3d_tfu_blit(struct pipe_context *pctx, struct pipe_blit_info *info)
391 if (v3d_tfu(pctx, info->dst.resource, info->src.resource,
401 v3d_get_blit_surface(struct pipe_context *pctx,
414 return pctx->create_surface(pctx, prsc, &tmpl);
424 v3d_tlb_blit(struct pipe_context *pctx, struct pipe_blit_info *info)
426 struct v3d_context *v3d = v3d_context(pctx);
474 v3d_get_blit_surface(pctx, info->dst.resource, info->dst.format, info->dst.level, info->dst.box.z);
476 v3d_get_blit_surface(pctx, info->src.resource, info->src.format, info->src.level, info->src.box.z);
565 v3d_get_sand8_vs(struct pipe_context *pctx)
567 struct v3d_context *v3d = v3d_context(pctx);
568 struct pipe_screen *pscreen = pctx->screen;
598 v3d->sand8_blit_vs = pctx->create_vs_state(pctx, &shader_tmpl);
609 v3d_get_sand8_fs(struct pipe_context *pctx, int cpp)
611 struct v3d_context *v3d = v3d_context(pctx);
612 struct pipe_screen *pscreen = pctx->screen;
738 *cached_shader = pctx->create_fs_state(pctx, &shader_tmpl);
750 v3d_sand8_blit(struct pipe_context *pctx, struct pipe_blit_info *info)
752 struct v3d_context *v3d = v3d_context(pctx);
785 pctx->create_surface(pctx, info->dst.resource, &dst_tmpl);
808 pctx->set_constant_buffer(pctx, PIPE_SHADER_FRAGMENT, 0, false,
816 pctx->set_constant_buffer(pctx, PIPE_SHADER_FRAGMENT, 2, false,
821 pctx->set_sampler_views(pctx, PIPE_SHADER_FRAGMENT, 0, 0, 0, false, NULL);
822 pctx->bind_sampler_states(pctx, PIPE_SHADER_FRAGMENT, 0, 0, NULL);
825 v3d_get_sand8_vs(pctx),
826 v3d_get_sand8_fs(pctx, src->cpp));
833 pctx->set_constant_buffer(pctx, PIPE_SHADER_FRAGMENT, 1, false,
847 v3d_blit(struct pipe_context *pctx, const struct pipe_blit_info *blit_info)
849 struct v3d_context *v3d = v3d_context(pctx);
852 v3d_sand8_blit(pctx, &info);
854 v3d_tfu_blit(pctx, &info);
856 v3d_tlb_blit(pctx, &info);
858 v3d_stencil_blit(pctx, &info);
860 v3d_render_blit(pctx, &info);