Legalization: Omit legalization warning when spirv-opt is linked.

This commit is contained in:
GregF
2018-03-05 14:34:15 -07:00
parent caa54449b4
commit fd50f6a4c3
12 changed files with 106 additions and 19 deletions

View File

@@ -9885,10 +9885,12 @@ void HlslParseContext::finish()
addPatchConstantInvocation();
fixTextureShadowModes();
#ifndef ENABLE_OPT
// Communicate out (esp. for command line) that we formed AST that will make
// illegal AST SPIR-V and it needs transforms to legalize it.
if (intermediate.needsLegalization())
infoSink.info << "WARNING: AST will form illegal SPIR-V; need to transform to legalize";
#endif
TParseContextBase::finish();
}