diff options
author | Timothy Arceri <[email protected]> | 2017-11-28 21:43:12 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-01-17 23:43:28 +1100 |
commit | c69b0dd6817b3321d0d9ccfd1c3d44b44277c736 (patch) | |
tree | e2f2f4c19792821336ada3b550fea3709bb5914a /src/mesa/state_tracker/st_program.h | |
parent | 7b0e8264dd21ae05521d08d41fecd84139401fef (diff) |
st/glsl_to_tgsi: store num_tgsi_tokens in st_*_program
We will need this for ARB_get_program_binary binary support.
Tested-by: Dieter Nützel <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_program.h')
-rw-r--r-- | src/mesa/state_tracker/st_program.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_program.h b/src/mesa/state_tracker/st_program.h index 0e6c8e00c6e..a520ffbecb4 100644 --- a/src/mesa/state_tracker/st_program.h +++ b/src/mesa/state_tracker/st_program.h @@ -150,6 +150,9 @@ struct st_fragment_program struct gl_shader_program *shader_program; struct st_fp_variant *variants; + + /* Used by the shader cache and ARB_get_program_binary */ + unsigned num_tgsi_tokens; }; @@ -222,6 +225,9 @@ struct st_vertex_program /** SHA1 hash of linked tgsi shader program, used for on-disk cache */ unsigned char sha1[20]; + + /* Used by the shader cache and ARB_get_program_binary */ + unsigned num_tgsi_tokens; }; @@ -264,6 +270,9 @@ struct st_common_program /** SHA1 hash of linked tgsi shader program, used for on-disk cache */ unsigned char sha1[20]; + + /* Used by the shader cache and ARB_get_program_binary */ + unsigned num_tgsi_tokens; }; @@ -284,6 +293,9 @@ struct st_compute_program /** SHA1 hash of linked tgsi shader program, used for on-disk cache */ unsigned char sha1[20]; + + /* Used by the shader cache and ARB_get_program_binary */ + unsigned num_tgsi_tokens; }; |