For saving/restoring all shader stages.
---
 src/gallium/auxiliary/cso_cache/cso_context.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/auxiliary/cso_cache/cso_context.h 
b/src/gallium/auxiliary/cso_cache/cso_context.h
index 0305451..a3563d8 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);
 
-- 
1.9.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to