nir/vtn: Use return type rather than image type for tex ops
[mesa.git] / src / compiler / nir / nir_opt_rematerialize_compares.c
index 8af33ab436ee141b698b780b12fe686999312b9d..b87dad185704bcfb32cb45f5948cfd62c2f2978f 100644 (file)
@@ -37,8 +37,8 @@ is_two_src_comparison(const nir_alu_instr *instr)
    case nir_op_fge32:
    case nir_op_feq:
    case nir_op_feq32:
-   case nir_op_fne:
-   case nir_op_fne32:
+   case nir_op_fneu:
+   case nir_op_fneu32:
    case nir_op_ilt:
    case nir_op_ilt32:
    case nir_op_ult:
@@ -174,6 +174,8 @@ nir_opt_rematerialize_compares_impl(nir_shader *shader, nir_function_impl *impl)
    if (progress) {
       nir_metadata_preserve(impl, nir_metadata_block_index |
                                   nir_metadata_dominance);
+   } else {
+      nir_metadata_preserve(impl, nir_metadata_all);
    }
 
    return progress;