[Mesa-dev] [PATCH 1/7] i965: Allow int64 conversion operations in channel_expressions

Lionel Landwerlin lionel.g.landwerlin at intel.com
Wed Feb 8 15:22:23 UTC 2017


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

On 08/02/17 14:58, Samuel Iglesias Gonsálvez wrote:
> From: Jason Ekstrand <jason.ekstrand at intel.com>
>
> This fixes 143 of the new piglit tests added by Nicolai
>
> Cc: Ian Romanick <idr at freedesktop.org>
> ---
>   .../dri/i965/brw_fs_channel_expressions.cpp        | 48 +++++++++++-----------
>   1 file changed, 24 insertions(+), 24 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
> index 45934bcdf71..5d8998810cf 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
> @@ -232,6 +232,10 @@ ir_channel_expressions_visitor::visit_leave(ir_assignment *ir)
>      case ir_unop_bitcast_f2i:
>      case ir_unop_bitcast_f2u:
>      case ir_unop_bitcast_u2f:
> +   case ir_unop_bitcast_u642d:
> +   case ir_unop_bitcast_i642d:
> +   case ir_unop_bitcast_d2u64:
> +   case ir_unop_bitcast_d2i64:
>      case ir_unop_i2u:
>      case ir_unop_u2i:
>      case ir_unop_f2i:
> @@ -249,6 +253,26 @@ ir_channel_expressions_visitor::visit_leave(ir_assignment *ir)
>      case ir_unop_d2u:
>      case ir_unop_u2d:
>      case ir_unop_d2b:
> +   case ir_unop_i642i:
> +   case ir_unop_u642i:
> +   case ir_unop_i642u:
> +   case ir_unop_u642u:
> +   case ir_unop_i642b:
> +   case ir_unop_i642f:
> +   case ir_unop_u642f:
> +   case ir_unop_i642d:
> +   case ir_unop_u642d:
> +   case ir_unop_i2i64:
> +   case ir_unop_u2i64:
> +   case ir_unop_b2i64:
> +   case ir_unop_f2i64:
> +   case ir_unop_d2i64:
> +   case ir_unop_i2u64:
> +   case ir_unop_u2u64:
> +   case ir_unop_f2u64:
> +   case ir_unop_d2u64:
> +   case ir_unop_u642i64:
> +   case ir_unop_i642u64:
>      case ir_unop_trunc:
>      case ir_unop_ceil:
>      case ir_unop_floor:
> @@ -443,30 +467,6 @@ ir_channel_expressions_visitor::visit_leave(ir_assignment *ir)
>      case ir_unop_vote_any:
>      case ir_unop_vote_all:
>      case ir_unop_vote_eq:
> -   case ir_unop_bitcast_u642d:
> -   case ir_unop_bitcast_i642d:
> -   case ir_unop_bitcast_d2u64:
> -   case ir_unop_bitcast_d2i64:
> -   case ir_unop_i642i:
> -   case ir_unop_u642i:
> -   case ir_unop_i642u:
> -   case ir_unop_u642u:
> -   case ir_unop_i642b:
> -   case ir_unop_i642f:
> -   case ir_unop_u642f:
> -   case ir_unop_i642d:
> -   case ir_unop_u642d:
> -   case ir_unop_i2i64:
> -   case ir_unop_u2i64:
> -   case ir_unop_b2i64:
> -   case ir_unop_f2i64:
> -   case ir_unop_d2i64:
> -   case ir_unop_i2u64:
> -   case ir_unop_u2u64:
> -   case ir_unop_f2u64:
> -   case ir_unop_d2u64:
> -   case ir_unop_u642i64:
> -   case ir_unop_i642u64:
>      case ir_unop_unpack_int_2x32:
>      case ir_unop_unpack_uint_2x32:
>         unreachable("unsupported");




More information about the mesa-dev mailing list