mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
nir/algebraic: Fix a typo in the bit size validation code
The conon_bit_class and canon_var_class variables got switched.
Fixes: 932c650e0b "nir/algebraic: Loosen a restriction on variables"
Reported-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
b75fb8ee36
commit
ecb7775e1c
1 changed files with 2 additions and 2 deletions
|
|
@ -362,8 +362,8 @@ class BitSizeValidator(object):
|
|||
if var_class == 0:
|
||||
self._var_classes[var.index] = bit_class
|
||||
else:
|
||||
canon_bit_class = self._class_relation.get_canonical(var_class)
|
||||
canon_var_class = self._class_relation.get_canonical(bit_class)
|
||||
canon_var_class = self._class_relation.get_canonical(var_class)
|
||||
canon_bit_class = self._class_relation.get_canonical(bit_class)
|
||||
assert canon_var_class < 0 or canon_bit_class < 0 or \
|
||||
canon_var_class == canon_bit_class, \
|
||||
'Variable {0} cannot be both {1}-bit and {2}-bit' \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue