Lines Matching refs:ppq
62 up_consts(struct pp_queue_t *ppq) in up_consts() argument
64 struct pipe_context *pipe = ppq->p->pipe; in up_consts()
66 pipe->buffer_subdata(pipe, ppq->constbuf, PIPE_TRANSFER_WRITE, in up_consts()
72 pp_jimenezmlaa_run(struct pp_queue_t *ppq, struct pipe_resource *in, in pp_jimenezmlaa_run() argument
76 struct pp_program *p = ppq->p; in pp_jimenezmlaa_run()
88 assert(ppq); in pp_jimenezmlaa_run()
89 assert(ppq->constbuf); in pp_jimenezmlaa_run()
90 assert(ppq->areamaptex); in pp_jimenezmlaa_run()
91 assert(ppq->inner_tmp); in pp_jimenezmlaa_run()
92 assert(ppq->shaders[n]); in pp_jimenezmlaa_run()
107 up_consts(ppq); in pp_jimenezmlaa_run()
113 0, ppq->constbuf); in pp_jimenezmlaa_run()
115 0, ppq->constbuf); in pp_jimenezmlaa_run()
124 p->framebuffer.zsbuf = ppq->stencils; in pp_jimenezmlaa_run()
130 pp_filter_setup_in(p, ppq->depth); in pp_jimenezmlaa_run()
132 pp_filter_setup_out(p, ppq->inner_tmp[0]); in pp_jimenezmlaa_run()
146 cso_set_vertex_shader_handle(p->cso, ppq->shaders[n][1]); /* offsetvs */ in pp_jimenezmlaa_run()
147 cso_set_fragment_shader_handle(p->cso, ppq->shaders[n][2]); in pp_jimenezmlaa_run()
159 pp_filter_setup_in(p, ppq->areamaptex); in pp_jimenezmlaa_run()
160 pp_filter_setup_out(p, ppq->inner_tmp[1]); in pp_jimenezmlaa_run()
162 u_sampler_view_default_template(&v_tmp, ppq->inner_tmp[0], in pp_jimenezmlaa_run()
163 ppq->inner_tmp[0]->format); in pp_jimenezmlaa_run()
165 ppq->inner_tmp[0], &v_tmp); in pp_jimenezmlaa_run()
178 cso_set_vertex_shader_handle(p->cso, ppq->shaders[n][0]); /* passvs */ in pp_jimenezmlaa_run()
179 cso_set_fragment_shader_handle(p->cso, ppq->shaders[n][3]); in pp_jimenezmlaa_run()
188 pp_filter_setup_in(p, ppq->inner_tmp[1]); in pp_jimenezmlaa_run()
210 cso_set_vertex_shader_handle(p->cso, ppq->shaders[n][1]); /* offsetvs */ in pp_jimenezmlaa_run()
211 cso_set_fragment_shader_handle(p->cso, ppq->shaders[n][4]); in pp_jimenezmlaa_run()
226 pp_jimenezmlaa_init_run(struct pp_queue_t *ppq, unsigned int n, in pp_jimenezmlaa_init_run() argument
242 ppq->constbuf = pipe_buffer_create(ppq->p->screen, in pp_jimenezmlaa_init_run()
246 if (ppq->constbuf == NULL) { in pp_jimenezmlaa_init_run()
266 if (!ppq->p->screen->is_format_supported(ppq->p->screen, res.format, in pp_jimenezmlaa_init_run()
270 ppq->areamaptex = ppq->p->screen->resource_create(ppq->p->screen, &res); in pp_jimenezmlaa_init_run()
272 if (ppq->areamaptex == NULL) { in pp_jimenezmlaa_init_run()
279 ppq->p->pipe->texture_subdata(ppq->p->pipe, ppq->areamaptex, 0, in pp_jimenezmlaa_init_run()
283 ppq->shaders[n][1] = pp_tgsi_to_state(ppq->p->pipe, offsetvs, true, in pp_jimenezmlaa_init_run()
286 ppq->shaders[n][2] = pp_tgsi_to_state(ppq->p->pipe, color1fs, in pp_jimenezmlaa_init_run()
289 ppq->shaders[n][2] = pp_tgsi_to_state(ppq->p->pipe, depth1fs, in pp_jimenezmlaa_init_run()
291 ppq->shaders[n][3] = pp_tgsi_to_state(ppq->p->pipe, tmp_text, false, in pp_jimenezmlaa_init_run()
293 ppq->shaders[n][4] = pp_tgsi_to_state(ppq->p->pipe, neigh3fs, false, in pp_jimenezmlaa_init_run()
308 pp_jimenezmlaa_free(ppq, n); in pp_jimenezmlaa_init_run()
315 pp_jimenezmlaa_init(struct pp_queue_t *ppq, unsigned int n, unsigned int val) in pp_jimenezmlaa_init() argument
317 return pp_jimenezmlaa_init_run(ppq, n, val, false); in pp_jimenezmlaa_init()
322 pp_jimenezmlaa_init_color(struct pp_queue_t *ppq, unsigned int n, in pp_jimenezmlaa_init_color() argument
325 return pp_jimenezmlaa_init_run(ppq, n, val, true); in pp_jimenezmlaa_init_color()
330 pp_jimenezmlaa(struct pp_queue_t *ppq, struct pipe_resource *in, in pp_jimenezmlaa() argument
333 if (!ppq->depth) { in pp_jimenezmlaa()
336 pp_jimenezmlaa_run(ppq, in, out, n, false); in pp_jimenezmlaa()
341 pp_jimenezmlaa_color(struct pp_queue_t *ppq, struct pipe_resource *in, in pp_jimenezmlaa_color() argument
344 pp_jimenezmlaa_run(ppq, in, out, n, true); in pp_jimenezmlaa_color()
353 pp_jimenezmlaa_free(struct pp_queue_t *ppq, unsigned int n) in pp_jimenezmlaa_free() argument
355 if (ppq->areamaptex) { in pp_jimenezmlaa_free()
356 pipe_resource_reference(&ppq->areamaptex, NULL); in pp_jimenezmlaa_free()
359 if (ppq->constbuf) { in pp_jimenezmlaa_free()
360 pipe_resource_reference(&ppq->constbuf, NULL); in pp_jimenezmlaa_free()