summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_format_pack.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-03-31 22:46:42 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-03-31 22:46:42 +0100
commit9388ce41917fa4c706c5e284d960e1ca648ee935 (patch)
treeab06774cc66adaacf2dc5601d425275a43b894c2 /src/gallium/auxiliary/util/u_format_pack.py
parentb5d073b39d19c261ffdce21b1adb297182654bd0 (diff)
util: Hook into libtxc_dxtn.so (WIP).
Diffstat (limited to 'src/gallium/auxiliary/util/u_format_pack.py')
-rw-r--r--src/gallium/auxiliary/util/u_format_pack.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/util/u_format_pack.py b/src/gallium/auxiliary/util/u_format_pack.py
index 73309cca5ce..95c0c79be9b 100644
--- a/src/gallium/auxiliary/util/u_format_pack.py
+++ b/src/gallium/auxiliary/util/u_format_pack.py
@@ -596,15 +596,17 @@ def generate(formats):
suffix = 'float'
for format in formats:
- generate_format_unpack(format, channel, native_type, suffix)
- generate_format_pack(format, channel, native_type, suffix)
- generate_format_fetch(format, channel, native_type, suffix)
+ if format.layout != 's3tc':
+ generate_format_unpack(format, channel, native_type, suffix)
+ generate_format_pack(format, channel, native_type, suffix)
+ generate_format_fetch(format, channel, native_type, suffix)
channel = Channel(UNSIGNED, True, 8)
native_type = 'uint8_t'
suffix = '8unorm'
for format in formats:
- generate_format_unpack(format, channel, native_type, suffix)
- generate_format_pack(format, channel, native_type, suffix)
+ if format.layout != 's3tc':
+ generate_format_unpack(format, channel, native_type, suffix)
+ generate_format_pack(format, channel, native_type, suffix)