Lines Matching defs:pctx
31 vc4_get_blit_surface(struct pipe_context *pctx,
42 return pctx->create_surface(pctx, prsc, &tmpl);
52 vc4_tile_blit(struct pipe_context *pctx, const struct pipe_blit_info *info)
54 struct vc4_context *vc4 = vc4_context(pctx);
126 vc4_get_blit_surface(pctx, info->dst.resource, info->dst.level);
128 vc4_get_blit_surface(pctx, info->src.resource, info->src.level);
180 static void *vc4_get_yuv_vs(struct pipe_context *pctx)
182 struct vc4_context *vc4 = vc4_context(pctx);
183 struct pipe_screen *pscreen = pctx->screen;
211 vc4->yuv_linear_blit_vs = pctx->create_vs_state(pctx, &shader_tmpl);
216 static void *vc4_get_yuv_fs(struct pipe_context *pctx, int cpp)
218 struct vc4_context *vc4 = vc4_context(pctx);
219 struct pipe_screen *pscreen = pctx->screen;
301 *cached_shader = pctx->create_fs_state(pctx, &shader_tmpl);
307 vc4_yuv_blit(struct pipe_context *pctx, const struct pipe_blit_info *info)
309 struct vc4_context *vc4 = vc4_context(pctx);
347 pctx->create_surface(pctx, info->dst.resource, &dst_tmpl);
363 pctx->set_constant_buffer(pctx, PIPE_SHADER_FRAGMENT, 0, false, &cb_uniforms);
370 pctx->set_constant_buffer(pctx, PIPE_SHADER_FRAGMENT, 1, false, &cb_src);
375 pctx->set_sampler_views(pctx, PIPE_SHADER_FRAGMENT, 0, 0, 0, false, NULL);
376 pctx->bind_sampler_states(pctx, PIPE_SHADER_FRAGMENT, 0, 0, NULL);
379 vc4_get_yuv_vs(pctx),
380 vc4_get_yuv_fs(pctx, src->cpp));
386 pctx->set_constant_buffer(pctx, PIPE_SHADER_FRAGMENT, 1, false, &cb_disabled);
396 ok = util_try_blit_via_copy_region(pctx, info, false);
433 vc4_blit(struct pipe_context *pctx, const struct pipe_blit_info *blit_info)
437 if (vc4_yuv_blit(pctx, blit_info))
440 if (vc4_tile_blit(pctx, blit_info))
444 if (util_try_blit_via_copy_region(pctx, &info, false))
451 if (vc4_render_blit(pctx, &info))