nak: Implement nir_op_vecN

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
Faith Ekstrand
2023-04-10 17:23:28 -05:00
committed by Marge Bot
parent 0c23df7da2
commit f9f9399773
+3
View File
@@ -442,6 +442,9 @@ impl<'a> ShaderFromNir<'a> {
self.instrs
.push(Instr::new_split(&[Dst::None, dst], srcs[0]));
}
nir_op_vec2 | nir_op_vec3 | nir_op_vec4 => {
self.instrs.push(Instr::new_vec(dst, &srcs));
}
_ => panic!("Unsupported ALU instruction: {}", alu.info().name()),
}
}