summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_format_parse.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-03-06 12:48:39 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-03-06 12:48:39 +0000
commitcfde6c50ae6c3ce7912a3d1231c459d020d77f13 (patch)
tree6abf79fe82def2c0af0aae428c522013af831374 /src/gallium/auxiliary/util/u_format_parse.py
parent6718f0325827b1d2dde47a48332c6c0471048abe (diff)
util: Add a new flag, for formats that can be described as a bitmask.
Diffstat (limited to 'src/gallium/auxiliary/util/u_format_parse.py')
-rwxr-xr-xsrc/gallium/auxiliary/util/u_format_parse.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gallium/auxiliary/util/u_format_parse.py b/src/gallium/auxiliary/util/u_format_parse.py
index 250926418e..80bae6fc95 100755
--- a/src/gallium/auxiliary/util/u_format_parse.py
+++ b/src/gallium/auxiliary/util/u_format_parse.py
@@ -166,17 +166,11 @@ class Format:
return True
def is_bitmask(self):
- if self.block_size() > 32:
- return False
- if not self.is_pot():
+ if self.block_size() not in (8, 16, 32):
return False
for channel in self.channels:
- if not is_pot(channel.size):
- return True
if channel.type not in (VOID, UNSIGNED, SIGNED):
return False
- if channel.size >= 32:
- return False
return True
def inv_swizzles(self):