diff options
author | Marek Olšák <[email protected]> | 2013-03-18 22:36:21 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-03-26 01:28:18 +0100 |
commit | d1b91e309be2467829aa71ebdcb5a8f78e30e781 (patch) | |
tree | 6103f83763ae7aadbb01c027b49683f63b3dd92f /src/gallium/auxiliary/postprocess/pp_run.c | |
parent | 35c522dce461a7d18a471e681413781da702d4b0 (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_run.c')
-rw-r--r-- | src/gallium/auxiliary/postprocess/pp_run.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_run.c b/src/gallium/auxiliary/postprocess/pp_run.c index 0bed547bd44..54a513e16b1 100644 --- a/src/gallium/auxiliary/postprocess/pp_run.c +++ b/src/gallium/auxiliary/postprocess/pp_run.c @@ -82,6 +82,8 @@ pp_run(struct pp_queue_t *ppq, struct pipe_resource *in, cso_save_vertex_shader(cso); cso_save_viewport(cso); cso_save_aux_vertex_buffer_slot(cso); + cso_save_constant_buffer_slot0(cso, PIPE_SHADER_VERTEX); + cso_save_constant_buffer_slot0(cso, PIPE_SHADER_FRAGMENT); cso_save_render_condition(cso); /* set default state */ @@ -141,6 +143,8 @@ pp_run(struct pp_queue_t *ppq, struct pipe_resource *in, cso_restore_vertex_shader(cso); cso_restore_viewport(cso); cso_restore_aux_vertex_buffer_slot(cso); + cso_restore_constant_buffer_slot0(cso, PIPE_SHADER_VERTEX); + cso_restore_constant_buffer_slot0(cso, PIPE_SHADER_FRAGMENT); cso_restore_render_condition(cso); pipe_resource_reference(&ppq->depth, NULL); |