[Mesa-dev] [PATCH 2/6] nir/algebraic: Use "uint" instead of "unsigned" for uint types

Samuel Iglesias Gonsálvez siglesias at igalia.com
Tue Apr 26 10:16:41 UTC 2016


Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>

On 26/04/16 06:39, Jason Ekstrand wrote:
> 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.
> ---
>  src/compiler/nir/nir_algebraic.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/compiler/nir/nir_algebraic.py b/src/compiler/nir/nir_algebraic.py
> index 3f770b6..5d94060 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"
> 


More information about the mesa-dev mailing list