Skip to content

Commit

Permalink
[Autobackout][FunctionalRegression]Revert of change: 1834392: Minor r…
Browse files Browse the repository at this point in the history
…efactor

Minor refactor
  • Loading branch information
sys-igc authored and igcbot committed Feb 21, 2025
1 parent e870408 commit d4a5cd0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions IGC/Compiler/CISACodeGen/PushAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1608,6 +1608,20 @@ namespace IGC
m_pullConstantHeuristics = &getAnalysis<PullConstantHeuristics>();
m_context = getAnalysis<CodeGenContextWrapper>().getCodeGenContext();

if (m_context->platform.isCoreChildOf(IGFX_XE3_CORE))
{
// VRT allows us to have 256GRFs, so we can double the number of pushed inputs
MaxNumOfPushedInputs = 24 * 2;
m_pMaxNumOfVSPushedInputs = 30;
m_pMaxNumOfDSPushedInputs = 24 * 2; // 48 * vec4 == 192 GRF == 3/4 256 GRF
}
else
{
MaxNumOfPushedInputs = 24;
m_pMaxNumOfVSPushedInputs = 24;
m_pMaxNumOfDSPushedInputs = 24;
}

MapList<Function*, Function*> funcsMapping;
bool retValue = false;

Expand Down
2 changes: 2 additions & 0 deletions IGC/Compiler/CISACodeGen/PushAnalysis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ namespace IGC
const llvm::DataLayout* m_DL;
static const uint32_t MaxConstantBufferIndexSize;
uint32_t MaxNumOfPushedInputs;
uint32_t m_pMaxNumOfVSPushedInputs;
uint32_t m_pMaxNumOfDSPushedInputs;

bool m_funcTypeChanged;
std::map <llvm::Function*, bool> m_isFuncTypeChanged;
Expand Down

0 comments on commit d4a5cd0

Please sign in to comment.