glsl/tests/lower_jumps: fix generated sexpr's for loops
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 28 May 2014 01:23:03 +0000 (21:23 -0400)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 28 May 2014 22:06:16 +0000 (15:06 -0700)
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@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/tests/lower_jumps/create_test_cases.py

index 9974681e02f96b56ef282b5e216427bf94acd705..3be1079bc144eda84cc9021a866b748afbe5559e 100644 (file)
@@ -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