glsl: add new uniform fields to be used to restore state from cache
Signed-off-by: Timothy Arceri <timothy.arceri@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:

committed by
Timothy Arceri

parent
0f60c6616e
commit
b8cb1a05cd
@@ -1265,6 +1265,10 @@ link_assign_uniform_storage(struct gl_context *ctx,
|
|||||||
|
|
||||||
link_setup_uniform_remap_tables(ctx, prog);
|
link_setup_uniform_remap_tables(ctx, prog);
|
||||||
|
|
||||||
|
/* Set shader cache fields */
|
||||||
|
prog->data->NumUniformDataSlots = num_data_slots;
|
||||||
|
prog->data->UniformDataSlots = data;
|
||||||
|
|
||||||
link_set_uniform_initializers(prog, boolean_true);
|
link_set_uniform_initializers(prog, boolean_true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2662,6 +2662,10 @@ struct gl_shader_program_data
|
|||||||
struct gl_active_atomic_buffer *AtomicBuffers;
|
struct gl_active_atomic_buffer *AtomicBuffers;
|
||||||
unsigned NumAtomicBuffers;
|
unsigned NumAtomicBuffers;
|
||||||
|
|
||||||
|
/* Shader cache variables used during restore */
|
||||||
|
unsigned NumUniformDataSlots;
|
||||||
|
union gl_constant_value *UniformDataSlots;
|
||||||
|
|
||||||
/** List of all active resources after linking. */
|
/** List of all active resources after linking. */
|
||||||
struct gl_program_resource *ProgramResourceList;
|
struct gl_program_resource *ProgramResourceList;
|
||||||
unsigned NumProgramResourceList;
|
unsigned NumProgramResourceList;
|
||||||
|
Reference in New Issue
Block a user