==================================================== Mesa 17.1.0-devel: src/compiler/test-suite.log ==================================================== # TOTAL: 10 # PASS: 9 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: glsl/tests/optimization-test.sh ===================================== ====== Generating tests ====== ../../../src/compiler/glsl/tests/lower_jumps/ ../../../src/compiler/glsl/tests/warnings/ ====== Testing optimization passes ====== Testing ./glsl/tests/lower_jumps/lower_unified_returns.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_breaks_6.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_breaks_4.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_returns_2.opt_test...PASS Testing ./glsl/tests/lower_jumps/return_void_at_end_of_loop_lower_return.opt_test...FAIL --- /tmp/tmpfn1xUgreturn_void_at_end_of_loop_lower_return.opt_test.expected 2017-03-29 16:42:08.563401492 +0900 +++ /tmp/tmpDk6bb1return_void_at_end_of_loop_lower_return.opt_test.out 2017-03-29 16:42:08.563401492 +0900 @@ -1,11 +1,15 @@ ((declare (out) float a) (declare (out) float b) (function main (signature void (parameters) - ((declare (temporary) bool return_flag) + ((declare (temporary) bool execute_flag) + (assign (x) (var_ref execute_flag) (constant bool (1))) + (declare (temporary) bool return_flag) (assign (x) (var_ref return_flag) (constant bool (0))) (loop ((assign (x) (var_ref a) (constant float (1.000000))) (assign (x) (var_ref return_flag) (constant bool (1))) break)) - (if (var_ref return_flag) () + (if (var_ref return_flag) + ((assign (x) (var_ref return_flag) (constant bool (1))) + (assign (x) (var_ref execute_flag) (constant bool (0)))) ((assign (x) (var_ref b) (constant float (2.000000))))))))) Testing ./glsl/tests/lower_jumps/return_void_at_end_of_loop_lower_nothing.opt_test...PASS Testing ./glsl/tests/lower_jumps/return_non_void_at_end_of_loop_lower_nothing.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_breaks_1.opt_test...PASS Testing ./glsl/tests/lower_jumps/return_non_void_at_end_of_loop_lower_return.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_returns_3.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_guarded_conditional_break.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_returns_sub_true.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_returns_sub_false.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_breaks_3.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_returns_main_false.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_breaks_5.opt_test...PASS Testing ./glsl/tests/lower_jumps/return_non_void_at_end_of_loop_lower_return_and_break.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_pulled_out_jump.opt_test...FAIL --- /tmp/tmpUc1MRQlower_pulled_out_jump.opt_test.expected 2017-03-29 16:42:09.003388756 +0900 +++ /tmp/tmpX7tkvzlower_pulled_out_jump.opt_test.out 2017-03-29 16:42:09.003388756 +0900 @@ -20,6 +20,8 @@ (continue))) ((assign (x) (var_ref return_flag) (constant bool (1))))) break)) - (if (var_ref return_flag) () + (if (var_ref return_flag) + ((assign (x) (var_ref return_flag) (constant bool (1))) + (assign (x) (var_ref execute_flag) (constant bool (0)))) ((assign (x) (var_ref d) (constant float (1.000000)))))) ()))))) Testing ./glsl/tests/lower_jumps/lower_returns_4.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_breaks_2.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_returns_main_true.opt_test...PASS Testing ./glsl/tests/lower_jumps/remove_continue_at_end_of_loop.opt_test...PASS Testing ./glsl/tests/lower_jumps/lower_returns_1.opt_test...PASS Testing ./glsl/tests/lower_jumps/return_void_at_end_of_loop_lower_return_and_break.opt_test...FAIL --- /tmp/tmp62XyyTreturn_void_at_end_of_loop_lower_return_and_break.opt_test.expected 2017-03-29 16:42:09.203382968 +0900 +++ /tmp/tmpliYgy6return_void_at_end_of_loop_lower_return_and_break.opt_test.out 2017-03-29 16:42:09.203382968 +0900 @@ -1,11 +1,15 @@ ((declare (out) float a) (declare (out) float b) (function main (signature void (parameters) - ((declare (temporary) bool return_flag) + ((declare (temporary) bool execute_flag) + (assign (x) (var_ref execute_flag) (constant bool (1))) + (declare (temporary) bool return_flag) (assign (x) (var_ref return_flag) (constant bool (0))) (loop ((assign (x) (var_ref a) (constant float (1.000000))) (assign (x) (var_ref return_flag) (constant bool (1))) break)) - (if (var_ref return_flag) () + (if (var_ref return_flag) + ((assign (x) (var_ref return_flag) (constant bool (1))) + (assign (x) (var_ref execute_flag) (constant bool (0)))) ((assign (x) (var_ref b) (constant float (2.000000))))))))) 21/24 tests returned correct results FAIL glsl/tests/optimization-test.sh (exit status: 1)