diff options
author | Marek Olšák <[email protected]> | 2016-12-31 12:02:26 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-01-05 13:07:12 +0100 |
commit | d3cb79e043338b0e55a3fba8df652f3ce4894d0d (patch) | |
tree | 0a75d8b210b01deb18e43fbd060044c43f89435d /src/mesa/state_tracker/st_glsl_to_tgsi.cpp | |
parent | 7c6b714cd0fe06044c9a810186f5ce3690152574 (diff) |
glsl: run do_lower_jumps properly in do_common_optimizations
so that backends don't have to run it manually
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_glsl_to_tgsi.cpp')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 95992965ed8..af4dd0e6b7f 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -6872,14 +6872,8 @@ st_link_shader(struct gl_context *ctx, struct gl_shader_program *prog) } do { - progress = false; - - progress = do_lower_jumps(ir, true, true, options->EmitNoMainReturn, options->EmitNoCont, options->EmitNoLoops) || progress; - progress = do_common_optimization(ir, true, true, options, - ctx->Const.NativeIntegers) - || progress; - + ctx->Const.NativeIntegers); progress = lower_if_to_cond_assign((gl_shader_stage)i, ir, options->MaxIfDepth, if_threshold) || progress; |