diff options
author | José Fonseca <[email protected]> | 2010-03-06 12:49:14 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-03-06 12:49:14 +0000 |
commit | f342ceca3852d5b9607d1f375be26de9304a11f6 (patch) | |
tree | c0cedca4cf4a068d53122c335236d123c509bd04 /src/gallium | |
parent | cfde6c50ae6c3ce7912a3d1231c459d020d77f13 (diff) |
util: Fix the maximum value computation for SSCALED channels.
Diffstat (limited to 'src/gallium')
-rwxr-xr-x | src/gallium/auxiliary/util/u_format_parse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_format_parse.py b/src/gallium/auxiliary/util/u_format_parse.py index 80bae6fc955..f74dc5e88a4 100755 --- a/src/gallium/auxiliary/util/u_format_parse.py +++ b/src/gallium/auxiliary/util/u_format_parse.py @@ -78,7 +78,7 @@ class Channel: if self.type == UNSIGNED: return (1 << self.size) - 1 if self.type == SIGNED: - return self.size - 1 + return (1 << (self.size - 1)) - 1 assert False def min(self): |