diff options
author | Timothy Arceri <[email protected]> | 2018-03-13 20:47:48 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-03-20 14:17:34 +1100 |
commit | 57ebab64c0dd1abd646f4f274d01f19c8e0e7293 (patch) | |
tree | 0412e2aef6003cec14e41b23822767e7f8d8ead9 /src/mesa/program/prog_parameter.h | |
parent | 23777543290b9dfa17bfecb5b389ad3fc8e75820 (diff) |
mesa: add _mesa_add_sized_state_reference() helper
This will be used for adding packed builtin uniforms.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_parameter.h')
-rw-r--r-- | src/mesa/program/prog_parameter.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/program/prog_parameter.h b/src/mesa/program/prog_parameter.h index 83eb0c5613a..8e36a1c5904 100644 --- a/src/mesa/program/prog_parameter.h +++ b/src/mesa/program/prog_parameter.h @@ -128,6 +128,11 @@ _mesa_add_unnamed_constant(struct gl_program_parameter_list *paramList, } extern GLint +_mesa_add_sized_state_reference(struct gl_program_parameter_list *paramList, + const gl_state_index16 stateTokens[STATE_LENGTH], + const unsigned size, bool pad_and_align); + +extern GLint _mesa_add_state_reference(struct gl_program_parameter_list *paramList, const gl_state_index16 stateTokens[]); |