summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/postprocess/pp_mlaa.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-03-18 22:36:21 +0100
committerMarek Olšák <[email protected]>2013-03-26 01:28:18 +0100
commitd1b91e309be2467829aa71ebdcb5a8f78e30e781 (patch)
tree6103f83763ae7aadbb01c027b49683f63b3dd92f /src/gallium/auxiliary/postprocess/pp_mlaa.c
parent35c522dce461a7d18a471e681413781da702d4b0 (diff)
cso: add constant buffer save/restore feature for postprocessing
Postprocessing is an internal meta op and should restore the states it changes.
Diffstat (limited to 'src/gallium/auxiliary/postprocess/pp_mlaa.c')
-rw-r--r--src/gallium/auxiliary/postprocess/pp_mlaa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_mlaa.c b/src/gallium/auxiliary/postprocess/pp_mlaa.c
index fcbc573c70a..6d9fa9aa3dd 100644
--- a/src/gallium/auxiliary/postprocess/pp_mlaa.c
+++ b/src/gallium/auxiliary/postprocess/pp_mlaa.c
@@ -99,8 +99,8 @@ pp_jimenezmlaa_run(struct pp_queue_t *ppq, struct pipe_resource *in,
dimensions[1] = p->framebuffer.height;
}
- pipe_set_constant_buffer(p->pipe, PIPE_SHADER_VERTEX, 0, constbuf);
- pipe_set_constant_buffer(p->pipe, PIPE_SHADER_FRAGMENT, 0, constbuf);
+ cso_set_constant_buffer_resource(p->cso, PIPE_SHADER_VERTEX, 0, constbuf);
+ cso_set_constant_buffer_resource(p->cso, PIPE_SHADER_FRAGMENT, 0, constbuf);
mstencil.stencil[0].enabled = 1;
mstencil.stencil[0].valuemask = mstencil.stencil[0].writemask = ~0;