diff options
author | Marek Olšák <[email protected]> | 2017-11-16 16:19:22 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-02-13 01:00:45 +0100 |
commit | 6b1e26e181fbe7fd64b42a0b77f80535be4d7690 (patch) | |
tree | 93674f363d34126642d83d924a50cae23c83a15d /src/compiler/shader_enums.h | |
parent | f4ea2b2a9e99d93fbf36c3f0e5f6f384be3cdb89 (diff) |
mesa: move STATE_LENGTH to shader_enums.h and use it everywhere
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/compiler/shader_enums.h')
-rw-r--r-- | src/compiler/shader_enums.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h index d1e875bd189..ac83c65b30c 100644 --- a/src/compiler/shader_enums.h +++ b/src/compiler/shader_enums.h @@ -48,6 +48,12 @@ typedef enum MESA_SHADER_COMPUTE = 5, } gl_shader_stage; +/** + * Number of STATE_* values we need to address any GL state. + * Used to dimension arrays. + */ +#define STATE_LENGTH 5 + typedef short gl_state_index16; /* see enum gl_state_index */ const char *gl_shader_stage_name(gl_shader_stage stage); |