Lines Matching refs:ppq
84 pp_run(struct pp_queue_t *ppq, struct pipe_resource *in, in pp_run() argument
89 struct cso_context *cso = ppq->p->cso; in pp_run()
91 if (ppq->n_filters == 0) in pp_run()
94 assert(ppq->pp_queue); in pp_run()
95 assert(ppq->tmp[0]); in pp_run()
97 if (in->width0 != ppq->p->framebuffer.width || in pp_run()
98 in->height0 != ppq->p->framebuffer.height) { in pp_run()
100 pp_free_fbos(ppq); in pp_run()
101 pp_init_fbos(ppq, in->width0, in->height0); in pp_run()
104 if (in == out && ppq->n_filters == 1) { in pp_run()
106 unsigned int w = ppq->p->framebuffer.width; in pp_run()
107 unsigned int h = ppq->p->framebuffer.height; in pp_run()
110 pp_blit(ppq->p->pipe, in, 0, 0, in pp_run()
111 w, h, 0, ppq->tmps[0], in pp_run()
114 in = ppq->tmp[0]; in pp_run()
151 pipe_resource_reference(&ppq->depth, indepth); in pp_run()
155 switch (ppq->n_filters) { in pp_run()
160 ppq->pp_queue[0] (ppq, in, out, 0); in pp_run()
164 ppq->pp_queue[0] (ppq, in, ppq->tmp[0], 0); in pp_run()
165 ppq->pp_queue[1] (ppq, ppq->tmp[0], out, 1); in pp_run()
169 assert(ppq->tmp[1]); in pp_run()
170 ppq->pp_queue[0] (ppq, in, ppq->tmp[0], 0); in pp_run()
172 for (i = 1; i < (ppq->n_filters - 1); i++) { in pp_run()
174 ppq->pp_queue[i] (ppq, ppq->tmp[1], ppq->tmp[0], i); in pp_run()
177 ppq->pp_queue[i] (ppq, ppq->tmp[0], ppq->tmp[1], i); in pp_run()
181 ppq->pp_queue[i] (ppq, ppq->tmp[1], out, i); in pp_run()
184 ppq->pp_queue[i] (ppq, ppq->tmp[0], out, i); in pp_run()
194 pipe_resource_reference(&ppq->depth, NULL); in pp_run()