summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_algebraic.py
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-04-25 12:00:12 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-04-27 11:21:06 -0700
commitcafb885e4594f20359cbc88fa08002147470935e (patch)
treee81ff5376c446b4e15e1634e6f255c7762041e72 /src/compiler/nir/nir_algebraic.py
parent736ee0bef7ec71370185395aeba443e12b6d3813 (diff)
downloadexternal_mesa3d-cafb885e4594f20359cbc88fa08002147470935e.zip
external_mesa3d-cafb885e4594f20359cbc88fa08002147470935e.tar.gz
external_mesa3d-cafb885e4594f20359cbc88fa08002147470935e.tar.bz2
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>
Diffstat (limited to 'src/compiler/nir/nir_algebraic.py')
-rw-r--r--src/compiler/nir/nir_algebraic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_algebraic.py b/src/compiler/nir/nir_algebraic.py
index 921d32b..565bee5 100644
--- a/src/compiler/nir/nir_algebraic.py
+++ b/src/compiler/nir/nir_algebraic.py
@@ -136,14 +136,14 @@ class Variable(Value):
self.required_type = m.group('type')
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]
def type(self):
if self.required_type == 'bool':
return "nir_type_bool32"
- elif self.required_type in ('int', 'unsigned'):
+ elif self.required_type in ('int', 'uint'):
return "nir_type_int"
elif self.required_type == 'float':
return "nir_type_float"