mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
util: Fix the maximum value computation for SSCALED channels.
This commit is contained in:
parent
cfde6c50ae
commit
f342ceca38
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue