diff options
author | Dave Airlie <airlied@redhat.com> | 2011-03-02 14:34:14 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-03-02 15:30:16 +1000 |
commit | 8d62b2aca99ba67f794dd682ed1ec49dc8826390 (patch) | |
tree | 630a9edcd0d7a781adc835e77fc0709e9de40196 /src/gallium/auxiliary/util/u_format_table.py | |
parent | 59cae3eee105b8522bc9b17cd60ad1e98b1e8825 (diff) |
gallium: add RGTC UNORM support to u_format.
SNORM needs a bit of work in the state tracker in order for mipmap
generation to work I believe.
I'm also not sure that having unorm fetches for an snorm format is
sane.
Diffstat (limited to 'src/gallium/auxiliary/util/u_format_table.py')
-rwxr-xr-x | src/gallium/auxiliary/util/u_format_table.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_format_table.py b/src/gallium/auxiliary/util/u_format_table.py index 8cc22a5637..7468bc38b3 100755 --- a/src/gallium/auxiliary/util/u_format_table.py +++ b/src/gallium/auxiliary/util/u_format_table.py @@ -87,6 +87,7 @@ def write_format_table(formats): print print '#include "u_format.h"' print '#include "u_format_s3tc.h"' + print '#include "u_format_rgtc.h"' print u_format_pack.generate(formats) @@ -132,7 +133,7 @@ def write_format_table(formats): if format.colorspace != ZS: print " &util_format_%s_unpack_rgba_8unorm," % format.short_name() print " &util_format_%s_pack_rgba_8unorm," % format.short_name() - if format.layout == 's3tc': + if format.layout == 's3tc' or format.layout == 'rgtc': print " &util_format_%s_fetch_rgba_8unorm," % format.short_name() else: print " NULL, /* fetch_rgba_8unorm */" |