summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-03-29 12:31:28 -0700
committerKenneth Graunke <[email protected]>2016-04-01 22:05:20 -0700
commit013f25c3b3aa676cbd580fc070454d74db27a400 (patch)
tree668ed0391e35752f3c1e467c0b581e2a8e23568b /src/compiler
parent98c22c04036da4f0a7fcc396dc6c5e0bfe5890e5 (diff)
glsl: Clean up some leftover cruft.
stages is always 1 << stage now. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/linker.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp
index 19f4641c724..064e7f5ca21 100644
--- a/src/compiler/glsl/linker.cpp
+++ b/src/compiler/glsl/linker.cpp
@@ -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;