We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba1ad9b commit 6a16031Copy full SHA for 6a16031
IGC/Compiler/CISACodeGen/ShaderCodeGen.cpp
@@ -438,7 +438,8 @@ namespace IGC
438
439
mpm.add(new ReplaceUnsupportedIntrinsics());
440
441
- if (IGC_IS_FLAG_DISABLED(DisablePromoteToDirectAS))
+ if (IGC_IS_FLAG_DISABLED(DisablePromoteToDirectAS) &&
442
+ !ctx.getModuleMetaData()->compOpt.IsLibraryCompilation)
443
{
444
// Promotes indirect resource access to direct
445
mpm.add(new BreakConstantExpr());
IGC/common/MDFrameWork.h
@@ -215,6 +215,7 @@ namespace IGC
215
bool PreferBindlessImages = false;
216
bool disableMathRefactoring = false;
217
bool EnableTakeGlobalAddress = false;
218
+ bool IsLibraryCompilation = false;
219
};
220
221
struct ComputeShaderInfo
0 commit comments