stages is always 1 << stage now.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
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;
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;