Hello; Patch changes gl_uniform_storage to include a data container for misc variables. This makes serilization of the storage easier. Patch is similar to changes made earlier for ir_variable but smaller in amount of changes.
Here's a branch of oes_get_program_binary that benefits from this change in gl_shader_program serialization: http://cgit.freedesktop.org/~tpalli/mesa/log/?h=oes_get_program_binary2 Plan is to continue making these kind of changes to minimize the code size introduced by binary shader cache and also make it more robust. Tapani Pälli (1): glsl: introduce data section to gl_uniform_storage src/glsl/ir_uniform.h | 132 +++++++++++++------------ src/glsl/link_atomics.cpp | 6 +- src/glsl/link_uniform_initializers.cpp | 23 ++--- src/glsl/link_uniforms.cpp | 50 +++++----- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 +- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 +- src/mesa/main/shaderapi.c | 2 +- src/mesa/main/uniform_query.cpp | 42 ++++---- src/mesa/main/uniforms.c | 6 +- src/mesa/program/ir_to_mesa.cpp | 6 +- src/mesa/program/sampler.cpp | 4 +- src/mesa/state_tracker/st_draw.c | 2 +- 12 files changed, 142 insertions(+), 137 deletions(-) -- 1.8.3.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev