diff options
author | Matthew McClure <[email protected]> | 2013-07-01 14:03:37 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-07-03 09:19:04 -0600 |
commit | 012ba47076dbc80742d4755f5c39909d0c4753f3 (patch) | |
tree | e7a001478da26424fa21a347668d6e9029f0a0cd /src | |
parent | 9b6788eb15dd3feedf9daf775bd7259988c35b10 (diff) |
postprocess: move second temporary assertion into isolated configuration
With this patch we will only assert that the second temporary is allocated,
when there are more than two active filters.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66423
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/postprocess/pp_run.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_run.c b/src/gallium/auxiliary/postprocess/pp_run.c index 9bd977b733e..0d95c72946f 100644 --- a/src/gallium/auxiliary/postprocess/pp_run.c +++ b/src/gallium/auxiliary/postprocess/pp_run.c @@ -53,8 +53,7 @@ pp_run(struct pp_queue_t *ppq, struct pipe_resource *in, assert(ppq->pp_queue); assert(ppq->tmp[0]); - assert(ppq->tmp[1]); - + if (in->width0 != ppq->p->framebuffer.width || in->height0 != ppq->p->framebuffer.height) { pp_debug("Resizing the temp pp buffers\n"); @@ -120,6 +119,7 @@ pp_run(struct pp_queue_t *ppq, struct pipe_resource *in, break; default: /* Two temp bufs */ + assert(ppq->tmp[1]); ppq->pp_queue[0] (ppq, in, ppq->tmp[0], 0); for (i = 1; i < (ppq->n_filters - 1); i++) { |