diff options
Diffstat (limited to 'src/gallium/auxiliary/postprocess/pp_run.c')
-rw-r--r-- | src/gallium/auxiliary/postprocess/pp_run.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_run.c b/src/gallium/auxiliary/postprocess/pp_run.c index be52051ed65..aa1badc72aa 100644 --- a/src/gallium/auxiliary/postprocess/pp_run.c +++ b/src/gallium/auxiliary/postprocess/pp_run.c @@ -64,6 +64,12 @@ pp_run(struct pp_queue_t *ppq, struct pipe_resource *in, in = ppq->tmp[0]; } + // Kept only for this frame. + struct pipe_resource *refin = NULL, *refout = NULL; + pipe_resource_reference(&ppq->depth, indepth); + pipe_resource_reference(&refin, in); + pipe_resource_reference(&refout, out); + switch (ppq->n_filters) { case 1: /* No temp buf */ ppq->pp_queue[0] (ppq, in, out, 0); @@ -93,6 +99,10 @@ pp_run(struct pp_queue_t *ppq, struct pipe_resource *in, break; } + + pipe_resource_reference(&ppq->depth, NULL); + pipe_resource_reference(&refin, NULL); + pipe_resource_reference(&refout, NULL); } |