Code clean up in swizzle math operations script
Remove redundant arguments in SwizzleCase constructor in gen swizzle
math operations script.
Change-Id: Ib1786db43682a6aa30b5d64ba770ad565ca23ea5
diff --git a/modules/gles3/scripts/gen-swizzle-math-operations.py b/modules/gles3/scripts/gen-swizzle-math-operations.py
index 65de314..614b26d 100644
--- a/modules/gles3/scripts/gen-swizzle-math-operations.py
+++ b/modules/gles3/scripts/gen-swizzle-math-operations.py
@@ -90,14 +90,10 @@
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 @@
caseName = "%s_%s_%s_%s" % (precision, dataType, swizzle1, swizzle2)
case = SwizzleCase( caseName,
- precision,
- dataType,
swizzle1,
swizzle2,
[("%s in0" % dataType, operands1)],