From: Jesse Natalie Date: Tue, 23 Jun 2020 12:44:11 +0000 (-0700) Subject: nir/vtn: Add support for 8 and 16 vector ball/bany X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d5cd1a5f419a4f793a47cb10f39ac44d2d4bb14;p=mesa.git nir/vtn: Add support for 8 and 16 vector ball/bany Reviewed-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Reviewed-by: Jason Ekstrand Part-of: --- diff --git a/src/compiler/spirv/vtn_alu.c b/src/compiler/spirv/vtn_alu.c index fc3fb3c4d68..e78f74576bb 100644 --- a/src/compiler/spirv/vtn_alu.c +++ b/src/compiler/spirv/vtn_alu.c @@ -450,6 +450,8 @@ vtn_handle_alu(struct vtn_builder *b, SpvOp opcode, case 2: op = nir_op_bany_inequal2; break; case 3: op = nir_op_bany_inequal3; break; case 4: op = nir_op_bany_inequal4; break; + case 8: op = nir_op_bany_inequal8; break; + case 16: op = nir_op_bany_inequal16; break; default: vtn_fail("invalid number of components"); } val->ssa->def = nir_build_alu(&b->nb, op, src[0], @@ -467,6 +469,8 @@ vtn_handle_alu(struct vtn_builder *b, SpvOp opcode, case 2: op = nir_op_ball_iequal2; break; case 3: op = nir_op_ball_iequal3; break; case 4: op = nir_op_ball_iequal4; break; + case 8: op = nir_op_ball_iequal8; break; + case 16: op = nir_op_ball_iequal16; break; default: vtn_fail("invalid number of components"); } val->ssa->def = nir_build_alu(&b->nb, op, src[0],