glsl: Add positional argument specifiers.
authorVinson Lee <vlee@freedesktop.org>
Thu, 1 Sep 2016 07:20:02 +0000 (00:20 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 6 Sep 2016 19:03:30 +0000 (12:03 -0700)
commit215075ae30aa60dd78dd7b3372f422e9e8e6a52b
treed8cf0df9d3641449394dd03aed9b2bfbb7c3af6a
parent31a380c8ddbcb9eaba275a000a9d0c5f28cfd379
glsl: Add positional argument specifiers.

Fix build with Python < 2.7.

  File "./glsl/ir_expression_operation.py", line 360, in get_enum_name
    return "ir_{}op_{}".format(("un", "bin", "tri", "quad")[self.num_operands-1], self.name)
ValueError: zero length field name in format

Fixes: e31c72a331b1 ("glsl: Convert tuple into a class")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/compiler/glsl/ir_expression_operation.py