Lines Matching defs:ppq
85 pp_run(struct pp_queue_t *ppq, struct pipe_resource *in,
90 struct cso_context *cso = ppq->p->cso;
92 if (ppq->n_filters == 0)
95 assert(ppq->pp_queue);
96 assert(ppq->tmp[0]);
98 if (in->width0 != ppq->p->framebuffer.width ||
99 in->height0 != ppq->p->framebuffer.height) {
101 pp_free_fbos(ppq);
102 pp_init_fbos(ppq, in->width0, in->height0);
105 if (in == out && ppq->n_filters == 1) {
107 unsigned int w = ppq->p->framebuffer.width;
108 unsigned int h = ppq->p->framebuffer.height;
111 pp_blit(ppq->p->pipe, in, 0, 0,
112 w, h, 0, ppq->tmps[0],
115 in = ppq->tmp[0];
148 pipe_resource_reference(&ppq->depth, indepth);
152 switch (ppq->n_filters) {
157 ppq->pp_queue[0] (ppq, in, out, 0);
161 ppq->pp_queue[0] (ppq, in, ppq->tmp[0], 0);
162 ppq->pp_queue[1] (ppq, ppq->tmp[0], out, 1);
166 assert(ppq->tmp[1]);
167 ppq->pp_queue[0] (ppq, in, ppq->tmp[0], 0);
169 for (i = 1; i < (ppq->n_filters - 1); i++) {
171 ppq->pp_queue[i] (ppq, ppq->tmp[1], ppq->tmp[0], i);
174 ppq->pp_queue[i] (ppq, ppq->tmp[0], ppq->tmp[1], i);
178 ppq->pp_queue[i] (ppq, ppq->tmp[1], out, i);
181 ppq->pp_queue[i] (ppq, ppq->tmp[0], out, i);
194 if (ppq->p->st) {
195 ppq->p->st->invalidate_state(ppq->p->st,
202 pipe_resource_reference(&ppq->depth, NULL);