File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments