From d8d247bad10bcf3f921c42d6d2b871943c691fd4 Mon Sep 17 00:00:00 2001 From: John Richardson Date: Wed, 29 Mar 2017 09:49:52 +0100 Subject: [PATCH] Code clean up in swizzle math operations script Remove redundant arguments in SwizzleCase constructor in gen swizzle math operations script. Change-Id: Ib1786db43682a6aa30b5d64ba770ad565ca23ea5 --- modules/gles3/scripts/gen-swizzle-math-operations.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 @@ 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)], -- 2.7.4