i965: Stop making a copy of non-builtin uniforms in ParameterValues[].
authorEric Anholt <eric@anholt.net>
Wed, 21 Nov 2012 22:33:52 +0000 (14:33 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 28 Dec 2012 18:53:54 +0000 (10:53 -0800)
We don't need them now that our set of parameter pointers points at the
GL core storage for them.  This should save memory/bandwidth/overhead in
uniform updates.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_shader.cpp

index 951b5f4fedb0b1fae8668123b34c8281f52b7882..1e8d57485ad72cd8a6e613b8718350cf3cc0ce87 100644 (file)
@@ -100,9 +100,6 @@ brw_link_shader(struct gl_context *ctx, struct gl_shader_program *shProg)
        return false;
       prog->Parameters = _mesa_new_parameter_list();
 
-      _mesa_generate_parameters_list_for_uniforms(shProg, &shader->base,
-                                                 prog->Parameters);
-
       if (stage == 0) {
         struct gl_vertex_program *vp = (struct gl_vertex_program *) prog;
         vp->UsesClipDistance = shProg->Vert.UsesClipDistance;