projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c597601
)
gallium/postprocess: Just to be safe, reference all buffers from outside
author
Lauri Kasanen
<cand@gmx.com>
Tue, 24 Jan 2012 19:37:56 +0000
(21:37 +0200)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 2 Feb 2012 21:42:09 +0000
(16:42 -0500)
Even though it should be safe to use them for one frame, better be sure.
Suggested by Michael Dänzer.
NOTE: This is a candidate for the 8.0 stable branch.
Signed-off-by: Lauri Kasanen <cand@gmx.com>
src/gallium/auxiliary/postprocess/pp_run.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/postprocess/pp_run.c
b/src/gallium/auxiliary/postprocess/pp_run.c
index be52051ed65771b1c857ec1f48ec07693b4cb23c..aa1badc72aa7955475fb90916ed890037a54f026 100644
(file)
--- 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);
}