[fuzzers] Do not fuzz IR->MSL yet
This backend is still under construction and is not ready for fuzzing.
Bug: chromium:1480904
Change-Id: I17fd4a5f90e8a9ec81e1eb4b76dcd686c033a008
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/151400
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: James Price <jrprice@google.com>
diff --git a/src/tint/fuzzers/tint_common_fuzzer.cc b/src/tint/fuzzers/tint_common_fuzzer.cc
index 773b66c..421cbbc 100644
--- a/src/tint/fuzzers/tint_common_fuzzer.cc
+++ b/src/tint/fuzzers/tint_common_fuzzer.cc
@@ -327,6 +327,12 @@
}
case OutputFormat::kMSL: {
#if TINT_BUILD_MSL_WRITER
+ // TODO(crbug.com/tint/1967): Skip fuzzing of the IR version of the MSL writer, which is
+ // still under construction.
+ if (options_msl_.use_tint_ir) {
+ return 0;
+ }
+
// Remap resource numbers to a flat namespace.
// TODO(crbug.com/tint/1501): Do this via Options::BindingMap.
auto input_program = &program;