From 7a66c8acd382414a73c2db0ffdc9d95b980f770d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 10 Dec 2012 14:22:34 +1000 Subject: [PATCH] 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 --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index efbbed2fd6a..07f4e848894 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -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); -- 2.30.2