File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -709,10 +709,6 @@ uint32_t CodeGenContext::getNumGRFPerThread(bool returnDefault) {
709
709
m_NumGRFPerThread = IGC_GET_FLAG_VALUE (TotalGRFNum);
710
710
return m_NumGRFPerThread;
711
711
}
712
- if (getModuleMetaData ()->csInfo .forceTotalGRFNum != 0 ) {
713
- m_NumGRFPerThread = getModuleMetaData ()->csInfo .forceTotalGRFNum ;
714
- return m_NumGRFPerThread;
715
- }
716
712
717
713
if (hasSyncRTCalls ()) {
718
714
// read value from CompOptions first
@@ -729,6 +725,16 @@ uint32_t CodeGenContext::getNumGRFPerThread(bool returnDefault) {
729
725
m_NumGRFPerThread = IGC_GET_FLAG_VALUE (TotalGRFNum4CS);
730
726
return m_NumGRFPerThread;
731
727
}
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
+
732
738
return (returnDefault ? DEFAULT_TOTAL_GRF_NUM : 0 );
733
739
}
734
740
Original file line number Diff line number Diff line change @@ -437,6 +437,7 @@ enum class ShaderTypeMD
437
437
bool BufferOffsetArgOptional = true ;
438
438
bool replaceGlobalOffsetsByZero = false ;
439
439
unsigned forcePixelShaderSIMDMode = 0 ;
440
+ unsigned int forceTotalGRFNum = 0 ; // 0 means not forced
440
441
bool pixelShaderDoNotAbortOnSpill = false ;
441
442
bool UniformWGS = false ;
442
443
bool disableVertexComponentPacking = false ;
You can’t perform that action at this time.
0 commit comments