[Mesa-dev] [PATCH 18/27] i965: avoid int64 induced warnings

Iago Toral itoral at igalia.com
Mon Jun 20 16:11:05 UTC 2016


Patches 18 and 18 are:
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>

On Mon, 2016-06-20 at 15:07 +1000, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> Just add types into unsupported or double
> equivalent spots.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/mesa/drivers/dri/i965/brw_fs.cpp           | 2 ++
>  src/mesa/drivers/dri/i965/brw_shader.cpp       | 2 ++
>  src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 ++
>  3 files changed, 6 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
> index 8774f25..12202bd 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
> @@ -475,6 +475,8 @@ type_size_scalar(const struct glsl_type *type)
>     case GLSL_TYPE_BOOL:
>        return type->components();
>     case GLSL_TYPE_DOUBLE:
> +   case GLSL_TYPE_UINT64:
> +   case GLSL_TYPE_INT64:
>        return type->components() * 2;
>     case GLSL_TYPE_ARRAY:
>        return type_size_scalar(type->fields.array) * type->length;
> diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp
> index 5ce7b82..f3f9307 100644
> --- a/src/mesa/drivers/dri/i965/brw_shader.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp
> @@ -69,6 +69,8 @@ brw_type_for_base_type(const struct glsl_type *type)
>     case GLSL_TYPE_ERROR:
>     case GLSL_TYPE_INTERFACE:
>     case GLSL_TYPE_FUNCTION:
> +   case GLSL_TYPE_UINT64:
> +   case GLSL_TYPE_INT64:
>        unreachable("not reached");
>     }
>  
> diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> index b392919..676c550 100644
> --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> @@ -582,6 +582,8 @@ type_size_xvec4(const struct glsl_type *type, bool as_vec4)
>     case GLSL_TYPE_FLOAT:
>     case GLSL_TYPE_BOOL:
>     case GLSL_TYPE_DOUBLE:
> +   case GLSL_TYPE_UINT64:
> +   case GLSL_TYPE_INT64:
>        if (type->is_matrix()) {
>           const glsl_type *col_type = type->column_type();
>           unsigned col_slots =




More information about the mesa-dev mailing list