nir: also move vecN in case of nir_move_copies

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5622>
This commit is contained in:
Daniel Schürmann
2020-06-24 11:14:18 +01:00
parent 14c554a391
commit 09d0e06c5c

View File

@@ -60,7 +60,7 @@ nir_can_move_instr(nir_instr *instr, nir_move_options options)
}
if ((options & nir_move_copies) && instr->type == nir_instr_type_alu &&
nir_instr_as_alu(instr)->op == nir_op_mov) {
nir_op_is_vec(nir_instr_as_alu(instr)->op)) {
return true;
}