nir: fix lower_{int,bool}_to_float for new mov opcode

It is treated like the vecN instructions which also have no type.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Jonathan Marek 2019-05-31 16:04:10 -04:00
parent f889180ee1
commit f6579ee204
2 changed files with 2 additions and 0 deletions

View file

@ -52,6 +52,7 @@ lower_alu_instr(nir_builder *b, nir_alu_instr *alu)
/* Replacement SSA value */
nir_ssa_def *rep = NULL;
switch (alu->op) {
case nir_op_mov:
case nir_op_vec2:
case nir_op_vec3:
case nir_op_vec4:

View file

@ -54,6 +54,7 @@ lower_alu_instr(nir_builder *b, nir_alu_instr *alu)
/* Replacement SSA value */
nir_ssa_def *rep = NULL;
switch (alu->op) {
case nir_op_mov:
case nir_op_vec2:
case nir_op_vec3:
case nir_op_vec4: