nir: Support vec8/vec16 in nir_lower_bit_size
[mesa.git] / src / compiler / nir / nir_lower_int_to_float.c
index f082b6633022bcbd31d94edc83f65e45947efe99..e526108d90457f4cbee631d36b57f02527fd6b81 100644 (file)
@@ -28,7 +28,7 @@
 static bool
 assert_ssa_def_is_not_int(nir_ssa_def *def, void *arg)
 {
-   MAYBE_UNUSED BITSET_WORD *int_types = arg;
+   ASSERTED BITSET_WORD *int_types = arg;
    assert(!BITSET_TEST(int_types, def->index));
    return true;
 }
@@ -86,6 +86,8 @@ lower_alu_instr(nir_builder *b, nir_alu_instr *alu)
    case nir_op_ineg: alu->op = nir_op_fneg; break;
    case nir_op_imax: alu->op = nir_op_fmax; break;
    case nir_op_imin: alu->op = nir_op_fmin; break;
+   case nir_op_umax: alu->op = nir_op_fmax; break;
+   case nir_op_umin: alu->op = nir_op_fmin; break;
 
    case nir_op_ball_iequal2:  alu->op = nir_op_ball_fequal2; break;
    case nir_op_ball_iequal3:  alu->op = nir_op_ball_fequal3; break;