aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/cso_cache/cso_context.h
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/cso_cache/cso_context.h
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/cso_cache/cso_context.h')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_context.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.h b/src/gallium/auxiliary/cso_cache/cso_context.h
index e8f5a9f77bf..20ab4ef1aaa 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.h
+++ b/src/gallium/auxiliary/cso_cache/cso_context.h
@@ -203,6 +203,19 @@ void
cso_restore_sampler_views(struct cso_context *cso, unsigned shader_stage);
+/* constant buffers */
+
+void cso_set_constant_buffer(struct cso_context *cso, unsigned shader_stage,
+ unsigned index, struct pipe_constant_buffer *cb);
+void cso_set_constant_buffer_resource(struct cso_context *cso,
+ unsigned shader_stage,
+ unsigned index,
+ struct pipe_resource *buffer);
+void cso_save_constant_buffer_slot0(struct cso_context *cso,
+ unsigned shader_stage);
+void cso_restore_constant_buffer_slot0(struct cso_context *cso,
+ unsigned shader_stage);
+
/* drawing */