Skip to content

Commit 1ec85ab

Browse files
iwwuigcbot
authored andcommitted
Add GRFSpill to compiler output
Add GRFSpill to compiler output
1 parent 4eb6e95 commit 1ec85ab

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6506,6 +6506,7 @@ namespace IGC
65066506
if (jitInfo->isSpill == true)
65076507
{
65086508
pOutput->m_scratchSpaceUsedBySpills = jitInfo->spillMemUsed;
6509+
pOutput->m_numGRFSpillFill = jitInfo->numGRFSpillFill;
65096510
}
65106511

65116512
pOutput->setScratchSpaceUsedByShader(m_program->m_ScratchSpaceSize);

IGC/Compiler/CodeGenPublic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ namespace IGC
138138
bool m_SeparatingSpillAndPrivateScratchMemorySpace = false;
139139
unsigned int m_scratchSpaceSizeLimit = 0;
140140
unsigned int m_numGRFTotal = 128;
141+
unsigned int m_numGRFSpillFill = 0;
141142
using NamedVISAAsm = std::pair<std::string, std::string>; // Pair of name for the section (1st elem) and VISA asm text (2nd elem).
142143
std::vector<NamedVISAAsm> m_VISAAsm;
143144

0 commit comments

Comments
 (0)