mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
glsl: Clean up some leftover cruft.
stages is always 1 << stage now. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
This commit is contained in:
parent
98c22c0403
commit
013f25c3b3
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue