util: Turn inv_swizzle into a global function
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Wed, 19 Mar 2014 17:09:14 +0000 (17:09 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 28 Apr 2014 12:16:22 +0000 (13:16 +0100)
commit0ee3ac938abdc15b26779780c0c94cfe71570b5d
tree7d180d61b73de84061c3391bf38d61a4da38be38
parent227d7a6a3ca0e32df2c87cf50112c5d7f02b2aae
util: Turn inv_swizzle into a global function

With the big-endian changes, there can be two swizzle orders for each format.
This patch turns Format.inv_swizzle() into a global function that takes the
swizzle list as a parameter.

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