Skip to content

Commit a057740

Browse files
sys-igcigcbot
authored andcommitted
[Autobackout][FunctionalRegression]Revert of change: 6072b2c: _OS_SUMMARY
_OS_DESCRIPTION
1 parent 6876fb5 commit a057740

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

IGC/Compiler/CodeGenContext.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,10 @@ uint32_t CodeGenContext::getNumGRFPerThread(bool returnDefault) {
709709
m_NumGRFPerThread = IGC_GET_FLAG_VALUE(TotalGRFNum);
710710
return m_NumGRFPerThread;
711711
}
712+
if (getModuleMetaData()->csInfo.forceTotalGRFNum != 0) {
713+
m_NumGRFPerThread = getModuleMetaData()->csInfo.forceTotalGRFNum;
714+
return m_NumGRFPerThread;
715+
}
712716

713717
if (hasSyncRTCalls()) {
714718
// read value from CompOptions first
@@ -725,16 +729,6 @@ uint32_t CodeGenContext::getNumGRFPerThread(bool returnDefault) {
725729
m_NumGRFPerThread = IGC_GET_FLAG_VALUE(TotalGRFNum4CS);
726730
return m_NumGRFPerThread;
727731
}
728-
// AIL check after reg check
729-
if (getModuleMetaData()->csInfo.forceTotalGRFNum != 0) {
730-
m_NumGRFPerThread = getModuleMetaData()->csInfo.forceTotalGRFNum;
731-
return m_NumGRFPerThread;
732-
}
733-
if (getModuleMetaData()->compOpt.forceTotalGRFNum != 0) {
734-
m_NumGRFPerThread = getModuleMetaData()->compOpt.forceTotalGRFNum;
735-
return m_NumGRFPerThread;
736-
}
737-
738732
return (returnDefault ? DEFAULT_TOTAL_GRF_NUM : 0);
739733
}
740734

IGC/common/MDFrameWork.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,6 @@ enum class ShaderTypeMD
437437
bool BufferOffsetArgOptional = true;
438438
bool replaceGlobalOffsetsByZero = false;
439439
unsigned forcePixelShaderSIMDMode = 0;
440-
unsigned int forceTotalGRFNum = 0; // 0 means not forced
441440
bool pixelShaderDoNotAbortOnSpill = false;
442441
bool UniformWGS = false;
443442
bool disableVertexComponentPacking = false;

0 commit comments

Comments
 (0)