diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-02-23 19:51:42 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-02-24 12:15:13 +0000 |
commit | 5dce9b252b65102ed69956fdd47862d5cb1c4af1 (patch) | |
tree | 32c7a22674c3eaac5dbd127ae2c872bdd05bde92 /src/gallium/auxiliary/util/u_format_table.py | |
parent | 3f5bac8960a5c6d1f08f0dc849676139b9d6ce5c (diff) |
util: Store more derived data in the the format description.
Diffstat (limited to 'src/gallium/auxiliary/util/u_format_table.py')
-rwxr-xr-x | src/gallium/auxiliary/util/u_format_table.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_format_table.py b/src/gallium/auxiliary/util/u_format_table.py index 571cab55dc..05e176d567 100755 --- a/src/gallium/auxiliary/util/u_format_table.py +++ b/src/gallium/auxiliary/util/u_format_table.py @@ -94,6 +94,9 @@ def write_format_table(formats): print " \"PIPE_FORMAT_NONE\"," print " {0, 0, 0}," print " 0," + print " 0," + print " 0," + print " 0," print " {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0}}," print " {0, 0, 0, 0}," print " 0" @@ -104,6 +107,9 @@ def write_format_table(formats): print " \"%s\"," % (format.name,) print " {%u, %u, %u},\t/* block */" % (format.block_width, format.block_height, format.block_size()) print " %s," % (layout_map(format.layout),) + print " %u,\t/* nr_channels */" % (format.nr_channels(),) + print " %s,\t/* is_array */" % (bool_map(format.is_array()),) + print " %s,\t/* is_mixed */" % (bool_map(format.is_mixed()),) print " {" for i in range(4): type = format.in_types[i] |