st_glsl_to_tgsi: call ubo load pass earlier

This calls it in around the same place as the 965 driver.

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie
2012-12-10 14:22:34 +10:00
parent af2d9affb1
commit 7a66c8acd3
+2 -1
View File
@@ -5112,6 +5112,8 @@ st_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
do_mat_op_to_vec(ir);
lower_instructions(ir, what_to_lower);
lower_ubo_reference(prog->_LinkedShaders[i], ir);
progress = do_lower_jumps(ir, true, true, options->EmitNoMainReturn, options->EmitNoCont, options->EmitNoLoops) || progress;
progress = do_common_optimization(ir, true, true,
@@ -5143,7 +5145,6 @@ st_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
progress = do_vec_index_to_cond_assign(ir) || progress;
lower_ubo_reference(prog->_LinkedShaders[i], ir);
} while (progress);
validate_ir_tree(ir);