mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
cso: add CSO_BITS_ALL_SHADERS
For saving/restoring all shader stages. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
a0636157c4
commit
1bf8fa8277
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue