Only print legalization warning if optimizer disabled
This commit is contained in:
@@ -9924,7 +9924,7 @@ void HlslParseContext::finish()
|
||||
|
||||
// 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())
|
||||
if (intermediate.needsLegalization() && (messages & EShMsgHlslLegalization))
|
||||
infoSink.info << "WARNING: AST will form illegal SPIR-V; need to transform to legalize";
|
||||
|
||||
TParseContextBase::finish();
|
||||
|
||||
Reference in New Issue
Block a user