summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/postprocess/pp_init.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2013-07-30 22:29:14 +0200
committerMarek Olšák <marek.olsak@amd.com>2013-07-30 23:31:22 +0200
commit4c89ec1f69c0cba995cb4aa939469ead82c6a8ec (patch)
treeb238c709b00c2f0e5d16094c4945ea33b44178a1 /src/gallium/auxiliary/postprocess/pp_init.c
parentc84e8d039ec9c7532b25757012aa3828f4f8a70d (diff)
downloadexternal_mesa3d-4c89ec1f69c0cba995cb4aa939469ead82c6a8ec.zip
external_mesa3d-4c89ec1f69c0cba995cb4aa939469ead82c6a8ec.tar.gz
external_mesa3d-4c89ec1f69c0cba995cb4aa939469ead82c6a8ec.tar.bz2
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 <brianp@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/postprocess/pp_init.c')
-rw-r--r--src/gallium/auxiliary/postprocess/pp_init.c13
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 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];