glsl: Clean up some leftover cruft.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Mar 2016 19:31:28 +0000 (12:31 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Apr 2016 05:05:20 +0000 (22:05 -0700)
stages is always 1 << stage now.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/linker.cpp

index 19f4641c72436b3c2d9a718fbb1d75f7fde6cca2..064e7f5ca214c17d08a73c9626e9c26dfa224180 100644 (file)
@@ -3525,7 +3525,6 @@ add_interface_variables(struct gl_shader_program *shProg,
 
    foreach_in_list(ir_instruction, node, ir) {
       ir_variable *var = node->as_variable();
-      uint8_t stages = 0;
 
       if (!var || var->data.how_declared == ir_var_hidden)
          continue;
@@ -3560,9 +3559,7 @@ add_interface_variables(struct gl_shader_program *shProg,
       if (!sha_v)
          return false;
 
-      stages |= 1 << stage;
-
-      if (!add_program_resource(shProg, programInterface, sha_v, stages))
+      if (!add_program_resource(shProg, programInterface, sha_v, 1 << stage))
          return false;
    }
    return true;