nir/algebraic: Use "uint" instead of "unsigned" for uint types
This is consistent with the rename done for the rest of NIR. Currently, "bool" is the only type specifier used in nir_opt_algebraic.py so this is really a no-op. Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
@@ -136,14 +136,14 @@ class Variable(Value):
|
|||||||
self.required_type = m.group('type')
|
self.required_type = m.group('type')
|
||||||
|
|
||||||
if self.required_type is not None:
|
if self.required_type is not None:
|
||||||
assert self.required_type in ('float', 'bool', 'int', 'unsigned')
|
assert self.required_type in ('float', 'bool', 'int', 'uint')
|
||||||
|
|
||||||
self.index = varset[self.var_name]
|
self.index = varset[self.var_name]
|
||||||
|
|
||||||
def type(self):
|
def type(self):
|
||||||
if self.required_type == 'bool':
|
if self.required_type == 'bool':
|
||||||
return "nir_type_bool32"
|
return "nir_type_bool32"
|
||||||
elif self.required_type in ('int', 'unsigned'):
|
elif self.required_type in ('int', 'uint'):
|
||||||
return "nir_type_int"
|
return "nir_type_int"
|
||||||
elif self.required_type == 'float':
|
elif self.required_type == 'float':
|
||||||
return "nir_type_float"
|
return "nir_type_float"
|
||||||
|
Reference in New Issue
Block a user