[Mesa-dev] [PATCH 2/4] glsl/tests/lower_jumps: fix generated sexpr's for loops

Connor Abbott cwabbott0 at gmail.com
Tue May 27 07:44:19 PDT 2014


In 088494aa (as well as other commits in the series) Paul Berry modified
the tests for lower_jumps to account for the fact that the s-expression
for the loop IR instruction changed from
(loop () () () () (statements...)) to (loop (statements...)), but he
forgot to update create_test_cases.py which he used to create the tests.
Fix that, so that now create_test_cases.py is synced with the generated
tests.

Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
---
 src/glsl/tests/lower_jumps/create_test_cases.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/tests/lower_jumps/create_test_cases.py b/src/glsl/tests/lower_jumps/create_test_cases.py
index 9974681..3be1079 100644
--- a/src/glsl/tests/lower_jumps/create_test_cases.py
+++ b/src/glsl/tests/lower_jumps/create_test_cases.py
@@ -126,7 +126,7 @@ def loop(statements):
     body.
     """
     check_sexp(statements)
-    return [['loop', [], [], [], [], statements]]
+    return [['loop', statements]]
 
 def declare_temp(var_type, var_name):
     """Create a declaration of the form
-- 
1.8.3.1



More information about the mesa-dev mailing list