glsl: Pass struct shader_compiler_options into do_common_optimization.