util: Add more query methods to u_format_parse.Format
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Wed, 19 Mar 2014 17:08:44 +0000 (17:08 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 28 Apr 2014 12:16:20 +0000 (13:16 +0100)
commit227d7a6a3ca0e32df2c87cf50112c5d7f02b2aae
tree6711561d4c0170b46213e536e560434a3f6973ff
parent136c437cea3ebc9541735bb40951128e1210f06b
util: Add more query methods to u_format_parse.Format

The main aim is to reduce the number of places that access channels[0],
swizzles[0] and swizzles[1] directly.

There is no change to the generated u_format_table.c.

Signed-off-by: Richard Sandiford <rsandifo@linux.vnet.ibm.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_format_pack.py
src/gallium/auxiliary/util/u_format_parse.py
src/gallium/auxiliary/util/u_format_table.py