Previously the asserts did not take swizzles into account.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
break;
case nir_op_unpack_64_2x32_split_x: {
- assert(instr->src[0].src.ssa->num_components == 1);
+ assert(ac_get_llvm_num_components(src[0]) == 1);
LLVMValueRef tmp = LLVMBuildBitCast(ctx->ac.builder, src[0],
ctx->ac.v2i32,
"");
}
case nir_op_unpack_64_2x32_split_y: {
- assert(instr->src[0].src.ssa->num_components == 1);
+ assert(ac_get_llvm_num_components(src[0]) == 1);
LLVMValueRef tmp = LLVMBuildBitCast(ctx->ac.builder, src[0],
ctx->ac.v2i32,
"");