From 4c89ec1f69c0cba995cb4aa939469ead82c6a8ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 30 Jul 2013 22:29:14 +0200 Subject: 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: mesa-stable@lists.freedesktop.org Reviewed-by: Brian Paul --- src/gallium/auxiliary/postprocess/pp_init.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/gallium/auxiliary/postprocess/pp_init.c') diff --git a/src/gallium/auxiliary/postprocess/pp_init.c b/src/gallium/auxiliary/postprocess/pp_init.c index 1130248..201a357 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]; -- cgit v1.1