nir: fix lower_{int,bool}_to_float for new mov opcode
authorJonathan Marek <jonathan@marek.ca>
Fri, 31 May 2019 20:04:10 +0000 (16:04 -0400)
committerJonathan Marek <jonathan@marek.ca>
Fri, 31 May 2019 21:35:26 +0000 (21:35 +0000)
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>
src/compiler/nir/nir_lower_bool_to_float.c
src/compiler/nir/nir_lower_int_to_float.c

index c48b800a365eafff4d133fb9179e39abad698ab7..c07121f6d882be4f770e961391ce972031d31531 100644 (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:
index d0da60c925bef5ce176e3d3d19777d37536fd7d3..e3503dcc8f8a52a9a46764751d4ef4b122471e67 100644 (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: