diff options
author | Marek Olšák <[email protected]> | 2013-07-30 22:29:14 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-07-30 23:31:22 +0200 |
commit | 4c89ec1f69c0cba995cb4aa939469ead82c6a8ec (patch) | |
tree | b238c709b00c2f0e5d16094c4945ea33b44178a1 /src/gallium/auxiliary/postprocess/pp_init.c | |
parent | c84e8d039ec9c7532b25757012aa3828f4f8a70d (diff) |
gallium/postprocessing: convert blits to pipe->blit
PP saves current states to cso_context and then util_blit_pixels does
the same. cso_context doesn't like that and the original state is not
correctly restored.
Cc: [email protected]
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/postprocess/pp_init.c')
-rw-r--r-- | src/gallium/auxiliary/postprocess/pp_init.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_init.c b/src/gallium/auxiliary/postprocess/pp_init.c index 1130248467a..201a357617a 100644 --- a/src/gallium/auxiliary/postprocess/pp_init.c +++ b/src/gallium/auxiliary/postprocess/pp_init.c @@ -31,7 +31,6 @@ #include "pipe/p_screen.h" #include "util/u_inlines.h" -#include "util/u_blit.h" #include "util/u_math.h" #include "util/u_debug.h" #include "util/u_memory.h" @@ -111,13 +110,6 @@ pp_init(struct pipe_context *pipe, const unsigned int *enabled, } } - ppq->p->blitctx = util_create_blit(ppq->p->pipe, cso); - - if (ppq->p->blitctx == NULL) { - pp_debug("Unable to create a blit context.\n"); - goto error; - } - ppq->n_filters = curpos; ppq->n_tmp = (curpos > 2 ? 2 : 1); ppq->n_inner_tmp = tmp_req; @@ -180,11 +172,6 @@ pp_free(struct pp_queue_t *ppq) pp_free_fbos(ppq); if (ppq && ppq->p) { - /* Only destroy created contexts. */ - if (ppq->p->blitctx) { - util_destroy_blit(ppq->p->blitctx); - } - if (ppq->p->pipe && ppq->filters && ppq->shaders) { for (i = 0; i < ppq->n_filters; i++) { unsigned int filter = ppq->filters[i]; |