util: Split out channel-printing Python code
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Wed, 19 Mar 2014 17:09:45 +0000 (17:09 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 28 Apr 2014 12:16:24 +0000 (13:16 +0100)
commit1a3746212d176f5907278871a9046ac9444dc27e
treeabede37e83f76633847560f74e927fa805ba642b
parent0ee3ac938abdc15b26779780c0c94cfe71570b5d
util: Split out channel-printing Python code

Rather than iterate over format.channels and format.swizzles directly,
use Python subfunctions that take the channel and swizzle lists as
arguments.  This allow the channel and swizzle lists to depend on
endianness.

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_table.py