From b8cb1a05cdf8a5dc7377d8a0c8d0ef5a655126cc Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 14 Apr 2016 10:48:19 +1000 Subject: glsl: add new uniform fields to be used to restore state from cache Signed-off-by: Timothy Arceri Reviewed-by: Eric Anholt --- src/compiler/glsl/link_uniforms.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compiler') diff --git a/src/compiler/glsl/link_uniforms.cpp b/src/compiler/glsl/link_uniforms.cpp index a450aa03a8c..8930d26a5ca 100644 --- a/src/compiler/glsl/link_uniforms.cpp +++ b/src/compiler/glsl/link_uniforms.cpp @@ -1265,6 +1265,10 @@ link_assign_uniform_storage(struct gl_context *ctx, 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); } -- cgit v1.2.3