[Piglit] [PATCH 21/45] gen_shader_bit_encoding_tests.py: change modifier_funcs to a set of tuples

Dylan Baker baker.dylan.c at gmail.com
Wed Nov 12 15:46:03 PST 2014


Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 generated_tests/gen_shader_bit_encoding_tests.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/generated_tests/gen_shader_bit_encoding_tests.py b/generated_tests/gen_shader_bit_encoding_tests.py
index ff9d406..aaf0863 100644
--- a/generated_tests/gen_shader_bit_encoding_tests.py
+++ b/generated_tests/gen_shader_bit_encoding_tests.py
@@ -89,10 +89,10 @@ funcs = {
 }
 
 modifier_funcs = {
-    '':            lambda x: x,
-    'abs':         abs,
-    'neg':         neg,
-    'neg_abs':     lambda x: neg(abs(x))
+    ('', lambda x: x),
+    ('abs', abs),
+    ('neg', neg),
+    ('neg_abs', lambda x: neg(abs(x))),
 }
 
 requirements = {
@@ -116,7 +116,7 @@ def main():
     for api, requirement in requirements.iteritems():
         for func, attrib in funcs:
             for execution_stage in ('vs', 'fs'):
-                for in_modifier_func, modifier_func in modifier_funcs.iteritems():
+                for in_modifier_func, modifier_func in modifier_funcs:
                     # Modifying the sign of an unsigned number doesn't make sense.
                     if func == 'uintBitsToFloat' and in_modifier_func != '':
                         continue
-- 
2.1.3



More information about the Piglit mailing list