Skip to content

Commit

Permalink
Add umd control for setting IGC NewSpillCostFunction for Compute Sha…
Browse files Browse the repository at this point in the history
…ders

Add umd control for setting IGC NewSpillCostFunction for Compute Shaders
  • Loading branch information
psroczyn authored and igcbot committed Sep 19, 2023
1 parent b65deb6 commit fd4dd1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion IGC/Compiler/CISACodeGen/CISABuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5067,7 +5067,10 @@ namespace IGC
}

if (IGC_IS_FLAG_ENABLED(NewSpillCostFunction) ||
context->getCompilerOption().NewSpillCostFunction)
context->getCompilerOption().NewSpillCostFunction ||
( context->type == ShaderType::COMPUTE_SHADER &&
context->getModuleMetaData()->csInfo.enableNewSpillCostFunction)
)
{
SaveOption(vISA_NewSpillCostFunction, true);
}
Expand Down
1 change: 1 addition & 0 deletions IGC/common/MDFrameWork.h
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ namespace IGC
bool allowLowerSimd = false;
bool disableSimd32Slicing = false;
bool disableSplitOnSpill = false;
bool enableNewSpillCostFunction = false;
bool forcedVISAPreRAScheduler = false;
bool forceUniformBuffer = false;
bool forceUniformSurfaceSampler = false;
Expand Down

0 comments on commit fd4dd1f

Please sign in to comment.