nir: Handle vec8/16 in opt_split_alu_of_phi

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>
This commit is contained in:
Jason Ekstrand
2020-03-30 12:08:20 -05:00
committed by Marge Bot
parent 2aab7999e4
commit e3554a293b

View File

@@ -388,10 +388,7 @@ opt_split_alu_of_phi(nir_builder *b, nir_loop *loop)
* to loop unrolling not recognizing loop termintators, and type
* conversions also lead to regressions.
*/
if (alu->op == nir_op_vec2 ||
alu->op == nir_op_vec3 ||
alu->op == nir_op_vec4 ||
alu->op == nir_op_mov ||
if (nir_op_is_vec(alu->op) ||
alu_instr_is_comparison(alu) ||
alu_instr_is_type_conversion(alu))
continue;