glsl: Calculate bitset of secondary outputs written in ir_set_program_inouts.