nir: Treat vec8/16 as select in opt_peephole_select
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 30 Mar 2020 17:08:47 +0000 (12:08 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 31 Mar 2020 00:18:05 +0000 (00:18 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4365>

src/compiler/nir/nir_opt_peephole_select.c

index 25b96cc1ba0321ccad26d0fa13668445cabb2882..1d0636d44020e1c3efb8a8107105fb8851c75f77 100644 (file)
@@ -119,6 +119,8 @@ block_check_for_allowed_instrs(nir_block *block, unsigned *count,
          case nir_op_vec2:
          case nir_op_vec3:
          case nir_op_vec4:
+         case nir_op_vec8:
+         case nir_op_vec16:
             movelike = true;
             break;