Code clean up in swizzle math operations script
authorJohn Richardson <john.richardson@mobica.com>
Wed, 29 Mar 2017 08:49:52 +0000 (09:49 +0100)
committerMika Isojärvi <misojarvi@google.com>
Tue, 11 Jul 2017 17:30:00 +0000 (10:30 -0700)
Remove redundant arguments in SwizzleCase constructor in gen swizzle
math operations script.

Change-Id: Ib1786db43682a6aa30b5d64ba770ad565ca23ea5

modules/gles3/scripts/gen-swizzle-math-operations.py

index 65de314..614b26d 100644 (file)
@@ -90,14 +90,10 @@ def rotate(l, n) :
        return l[n:] + l[:n]
 
 class SwizzleCase(ShaderCase):
-       def __init__(self, name, precision, dataType, swizzle1, swizzle2, inputs1, inputs2, operator, outputs):
+       def __init__(self, name, swizzle1, swizzle2, inputs1, inputs2, operator, outputs):
                self.name       = name
-               self.precision  = precision
-               self.dataType   = dataType
                self.swizzle1   = swizzle1
                self.swizzle2   = swizzle2
-               self.inputs1    = inputs1
-               self.inputs2    = inputs2
                self.inputs     = inputs1 + inputs2
                self.outputs    = outputs
                self.op         = "out0 = in0.%s %s in1.%s;" % (swizzle1, operator, swizzle2)
@@ -183,8 +179,6 @@ for operator in OPERATORS:
                                        caseName = "%s_%s_%s_%s" % (precision, dataType, swizzle1, swizzle2)
 
                                        case = SwizzleCase(     caseName,
-                                                               precision,
-                                                               dataType,
                                                                swizzle1,
                                                                swizzle2,
                                                                [("%s in0" % dataType, operands1)],