projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a063615
)
cso: add CSO_BITS_ALL_SHADERS
author
Brian Paul
<brianp@vmware.com>
Tue, 16 Feb 2016 17:22:32 +0000
(10:22 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 16 Feb 2016 17:22:32 +0000
(10:22 -0700)
For saving/restoring all shader stages.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/cso_cache/cso_context.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/cso_cache/cso_context.h
b/src/gallium/auxiliary/cso_cache/cso_context.h
index 030545175d55011b87aad42d8124a0d89ca27ae2..a3563d83a02f278bc48a5f0df2cded6708ba2a6a 100644
(file)
--- 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);