summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/cso_cache
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-02-16 10:22:32 -0700
committerBrian Paul <[email protected]>2016-02-16 10:22:32 -0700
commit1bf8fa82770622c0a8ba88e7cb506e507fb56061 (patch)
tree68052ae33353317af100cba8dea5c9461ccfb28c /src/gallium/auxiliary/cso_cache
parenta0636157c49701696f451dceac96bed43e7af830 (diff)
cso: add CSO_BITS_ALL_SHADERS
For saving/restoring all shader stages. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/cso_cache')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.h b/src/gallium/auxiliary/cso_cache/cso_context.h
index 030545175d5..a3563d83a02 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.h
+++ b/src/gallium/auxiliary/cso_cache/cso_context.h
@@ -171,6 +171,12 @@ void cso_set_render_condition(struct cso_context *cso,
#define CSO_BIT_VERTEX_SHADER 0x20000
#define CSO_BIT_VIEWPORT 0x40000
+#define CSO_BITS_ALL_SHADERS (CSO_BIT_VERTEX_SHADER | \
+ CSO_BIT_FRAGMENT_SHADER | \
+ CSO_BIT_GEOMETRY_SHADER | \
+ CSO_BIT_TESSCTRL_SHADER | \
+ CSO_BIT_TESSEVAL_SHADER)
+
void cso_save_state(struct cso_context *cso, unsigned state_mask);
void cso_restore_state(struct cso_context *cso);