Legalization: Omit legalization warning when spirv-opt is linked.
This commit is contained in:
parent
caa54449b4
commit
fd50f6a4c3
12 changed files with 106 additions and 19 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue