diff options
author | Ian Romanick <[email protected]> | 2010-09-16 14:40:26 +0200 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-09-17 11:00:24 +0200 |
commit | a6ecd1c3724a78b76ab9e81ea39632f1279021f8 (patch) | |
tree | cc42484babe94e40d020f04f4c0082da98027540 /src/mesa/program | |
parent | 6e4fe39da26bf101f5fe1103ba426c0903445352 (diff) |
glsl2: Add flags to enable variable index lowering
Diffstat (limited to 'src/mesa/program')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 227dfdbd50a..29b92821f6d 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2745,6 +2745,19 @@ _mesa_ir_link_shader(GLcontext *ctx, struct gl_shader_program *prog) if (options->EmitNoNoise) progress = lower_noise(ir) || progress; + /* If there are forms of indirect addressing that the driver + * cannot handle, perform the lowering pass. + */ + if (options->EmitNoIndirectInput || options->EmitNoIndirectOutput + || options->EmitNoIndirectTemp || options->EmitNoIndirectUniform) + progress = + lower_variable_index_to_cond_assign(ir, + options->EmitNoIndirectInput, + options->EmitNoIndirectOutput, + options->EmitNoIndirectTemp, + options->EmitNoIndirectUniform) + || progress; + progress = do_vec_index_to_cond_assign(ir) || progress; } while (progress); |