From c15e7ade4e27e1649d5b98f5854e9e52bb9e60ae Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 2 Feb 2024 22:04:40 -0800 Subject: Atomics+Wave ops intrinsics fixes. (#3542) * Fix atomics intrinsics, increase kMaxDescriptorSets. * Add SPIRVASM to known non-differentiable insts. * Support fp16 wave ops when targeting glsl. * Fixes. * Fix vk validation errors. * Fix. * Add to allowed failures. --- source/slang/slang-options.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/slang/slang-options.cpp') diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index ae6195700..3edc7dfb5 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -74,6 +74,7 @@ enum class OptionKind EmitIr, ReportDownstreamTime, ReportPerfBenchmark, + SkipSPIRVValidation, SourceEmbedStyle, SourceEmbedName, @@ -446,6 +447,7 @@ void initCommandOptions(CommandOptions& options) { OptionKind::InputFilesRemain, "--", nullptr, "Treat the rest of the command line as input files."}, { OptionKind::ReportDownstreamTime, "-report-downstream-time", nullptr, "Reports the time spent in the downstream compiler." }, { OptionKind::ReportPerfBenchmark, "-report-perf-benchmark", nullptr, "Reports compiler performance benchmark results." }, + { OptionKind::SkipSPIRVValidation, "-skip-spirv-validation", nullptr, "Skips spirv validation." }, { OptionKind::SourceEmbedStyle, "-source-embed-style", "-source-embed-style ", "If source embedding is enabled, defines the style used. When enabled (with any style other than `none`), " "will write compile results into embeddable source for the target language. " @@ -1930,6 +1932,11 @@ SlangResult OptionsParser::_parse( m_compileRequest->setReportPerfBenchmark(true); break; } + case OptionKind::SkipSPIRVValidation: + { + m_compileRequest->setSkipSPIRVValidation(true); + break; + } case OptionKind::ModuleName: { CommandLineArg moduleName; -- cgit v1.2.3