|
49 | 49 | #include "src/tint/lang/wgsl/ast/transform/renamer.h"
|
50 | 50 | #include "src/tint/lang/wgsl/ast/transform/single_entry_point.h"
|
51 | 51 | #include "src/tint/lang/wgsl/ast/transform/substitute_override.h"
|
52 |
| -#include "src/tint/lang/wgsl/common/validation_mode.h" |
53 | 52 | #include "src/tint/lang/wgsl/helpers/flatten_bindings.h"
|
54 | 53 | #include "src/tint/utils/cli/cli.h"
|
55 | 54 | #include "src/tint/utils/command/command.h"
|
@@ -181,7 +180,6 @@ struct Options {
|
181 | 180 | bool parse_only = false;
|
182 | 181 | bool disable_workgroup_init = false;
|
183 | 182 | bool validate = false;
|
184 |
| - bool compatibility_mode = false; |
185 | 183 | bool print_hash = false;
|
186 | 184 | bool dump_inspector_bindings = false;
|
187 | 185 | bool enable_robustness = false;
|
@@ -362,11 +360,6 @@ When specified, automatically enables MSL validation)",
|
362 | 360 | options.Add<BoolOption>("parse-only", "Stop after parsing the input", Default{false});
|
363 | 361 | TINT_DEFER(opts->parse_only = *parse_only.value);
|
364 | 362 |
|
365 |
| - auto& compatibility_mode = options.Add<BoolOption>( |
366 |
| - "compatibility-mode", "Validate WGSL input using \"compatibility mode\"", |
367 |
| - ShortName{"compat"}, Default{false}); |
368 |
| - TINT_DEFER(opts->compatibility_mode = *compatibility_mode.value); |
369 |
| - |
370 | 363 | #if TINT_BUILD_SPV_READER
|
371 | 364 | auto& allow_nud =
|
372 | 365 | options.Add<BoolOption>("allow-non-uniform-derivatives",
|
@@ -1310,8 +1303,6 @@ int main(int argc, const char** argv) {
|
1310 | 1303 |
|
1311 | 1304 | tint::cmd::LoadProgramOptions opts;
|
1312 | 1305 | opts.filename = options.input_filename;
|
1313 |
| - opts.mode = options.compatibility_mode ? tint::wgsl::ValidationMode::kCompat |
1314 |
| - : tint::wgsl::ValidationMode::kFull; |
1315 | 1306 | opts.printer = options.printer.get();
|
1316 | 1307 | #if TINT_BUILD_SPV_READER
|
1317 | 1308 | opts.use_ir = options.use_ir_reader;
|
|
0 commit comments