[Mesa-dev] [PATCH] nir: Add GLSL_TYPE_[U]INT64 to some switch statements

Lionel Landwerlin lionel.g.landwerlin at intel.com
Sun Apr 16 23:38:15 UTC 2017


Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

On 14/04/17 14:55, Jason Ekstrand wrote:
> ---
>   src/compiler/nir/nir.c                  | 2 ++
>   src/compiler/nir/nir_split_var_copies.c | 2 ++
>   2 files changed, 4 insertions(+)
>
> diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
> index 43fa60f..0abf9b6 100644
> --- a/src/compiler/nir/nir.c
> +++ b/src/compiler/nir/nir.c
> @@ -699,7 +699,9 @@ deref_foreach_leaf_build_recur(nir_deref_var *deref, nir_deref *tail,
>      assert(tail->child == NULL);
>      switch (glsl_get_base_type(tail->type)) {
>      case GLSL_TYPE_UINT:
> +   case GLSL_TYPE_UINT64:
>      case GLSL_TYPE_INT:
> +   case GLSL_TYPE_INT64:
>      case GLSL_TYPE_FLOAT:
>      case GLSL_TYPE_DOUBLE:
>      case GLSL_TYPE_BOOL:
> diff --git a/src/compiler/nir/nir_split_var_copies.c b/src/compiler/nir/nir_split_var_copies.c
> index 58c7873..15a185e 100644
> --- a/src/compiler/nir/nir_split_var_copies.c
> +++ b/src/compiler/nir/nir_split_var_copies.c
> @@ -147,7 +147,9 @@ split_var_copy_instr(nir_intrinsic_instr *old_copy,
>         break;
>   
>      case GLSL_TYPE_UINT:
> +   case GLSL_TYPE_UINT64:
>      case GLSL_TYPE_INT:
> +   case GLSL_TYPE_INT64:
>      case GLSL_TYPE_FLOAT:
>      case GLSL_TYPE_DOUBLE:
>      case GLSL_TYPE_BOOL:




More information about the mesa-dev mailing list