Skip to content

Commit d4a5cd0

Browse files
sys-igcigcbot
authored andcommitted
[Autobackout][FunctionalRegression]Revert of change: 1834392: Minor refactor
Minor refactor
1 parent e870408 commit d4a5cd0

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

IGC/Compiler/CISACodeGen/PushAnalysis.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,6 +1608,20 @@ namespace IGC
16081608
m_pullConstantHeuristics = &getAnalysis<PullConstantHeuristics>();
16091609
m_context = getAnalysis<CodeGenContextWrapper>().getCodeGenContext();
16101610

1611+
if (m_context->platform.isCoreChildOf(IGFX_XE3_CORE))
1612+
{
1613+
// VRT allows us to have 256GRFs, so we can double the number of pushed inputs
1614+
MaxNumOfPushedInputs = 24 * 2;
1615+
m_pMaxNumOfVSPushedInputs = 30;
1616+
m_pMaxNumOfDSPushedInputs = 24 * 2; // 48 * vec4 == 192 GRF == 3/4 256 GRF
1617+
}
1618+
else
1619+
{
1620+
MaxNumOfPushedInputs = 24;
1621+
m_pMaxNumOfVSPushedInputs = 24;
1622+
m_pMaxNumOfDSPushedInputs = 24;
1623+
}
1624+
16111625
MapList<Function*, Function*> funcsMapping;
16121626
bool retValue = false;
16131627

IGC/Compiler/CISACodeGen/PushAnalysis.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ namespace IGC
3232
const llvm::DataLayout* m_DL;
3333
static const uint32_t MaxConstantBufferIndexSize;
3434
uint32_t MaxNumOfPushedInputs;
35+
uint32_t m_pMaxNumOfVSPushedInputs;
36+
uint32_t m_pMaxNumOfDSPushedInputs;
3537

3638
bool m_funcTypeChanged;
3739
std::map <llvm::Function*, bool> m_isFuncTypeChanged;

0 commit comments

Comments
 (0)