nir: Add positional argument specifiers.
authorVinson Lee <vlee@freedesktop.org>
Fri, 17 Mar 2017 23:21:38 +0000 (16:21 -0700)
committerVinson Lee <vlee@dropbox.com>
Tue, 21 Mar 2017 20:38:00 +0000 (13:38 -0700)
commit1fa432741c45cf9cdbdd416cd0f7b424f2ffc7a5
treebe2ef9121e5f7ff483da3b1bc8b15d688eee97b4
parentad13bd2e51a5dc01b0f8a0eb927022f0deac0a0c
nir: Add positional argument specifiers.

Fix build with Python < 2.7.

  File "src/compiler/nir/nir_builder_opcodes_h.py", line 46, in <module>
    from nir_opcodes import opcodes
  File "src/compiler/nir/nir_opcodes.py", line 178, in <module>
    unop_convert("{}2{}{}".format(src_t[0], dst_t[0], bit_size),
ValueError: zero length field name in format

Fixes: 762a6333f21f ("nir: Rework conversion opcodes")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
src/compiler/nir/nir_opcodes.py
src/compiler/nir/nir_opcodes_c.py