@@ -4427,15 +4427,15 @@ namespace IGC
4427
4427
return true ;
4428
4428
4429
4429
// API check.
4430
- bool enableForRetry = m_program->m_DriverInfo ->enableVISAPreRASchedulerForRetry () ||
4430
+ bool enableForRetey = m_program->m_DriverInfo ->enableVISAPreRASchedulerForRetry () ||
4431
4431
context->m_retryManager .AllowVISAPreRAScheduler ();
4432
4432
// PreRA scheduler runs always when VRT is enabled
4433
- enableForRetry |= m_program->m_Platform ->supportsVRT () && m_program->m_DriverInfo ->supportsVRT () &&
4433
+ enableForRetey |= m_program->m_Platform ->supportsVRT () && m_program->m_DriverInfo ->supportsVRT () &&
4434
4434
(context->getModuleMetaData ()->compOpt .EnableVRT || IGC_IS_FLAG_ENABLED (EnableVRT));
4435
4435
4436
4436
if (IGC_IS_FLAG_ENABLED (EnableVISAPreSched) &&
4437
4437
m_program->m_DriverInfo ->enableVISAPreRAScheduler () &&
4438
- enableForRetry )
4438
+ enableForRetey )
4439
4439
return true ;
4440
4440
4441
4441
return false ;
@@ -4817,6 +4817,10 @@ namespace IGC
4817
4817
{
4818
4818
SaveOption (vISA_TotalGRFNum, NumGRFSetting);
4819
4819
}
4820
+ else if (m_program->getNumGRFPerThread () > 0 )
4821
+ {
4822
+ SaveOption (vISA_TotalGRFNum, m_program->getNumGRFPerThread ());
4823
+ }
4820
4824
4821
4825
if (context->getModuleMetaData ()->compOpt .WaEnableALTModeVisaWA )
4822
4826
{
@@ -4894,18 +4898,14 @@ namespace IGC
4894
4898
}
4895
4899
}
4896
4900
} else { // Other shader types
4897
- if (IGC_GET_FLAG_VALUE (ForceHWThreadNumberPerEU) != 0 )
4898
- {
4901
+ if (IGC_GET_FLAG_VALUE (ForceHWThreadNumberPerEU) != 0 ) {
4899
4902
SaveOption (vISA_HWThreadNumberPerEU,
4900
4903
IGC_GET_FLAG_VALUE (ForceHWThreadNumberPerEU));
4901
- }
4902
- else if ((m_program->m_Platform ->supportsAutoGRFSelection () &&
4903
- context->m_DriverInfo .supportsAutoGRFSelection () &&
4904
- IGC_IS_FLAG_ENABLED (ForceSupportsAutoGRFSelection)) ||
4905
- (m_program->m_Platform ->supportsVRT () &&
4906
- m_program->m_DriverInfo ->supportsVRT () &&
4907
- IGC_IS_FLAG_ENABLED (EnableVRT)))
4908
- {
4904
+ } else if (m_program->m_Platform ->supportsAutoGRFSelection () &&
4905
+ context->m_DriverInfo .supportsAutoGRFSelection () &&
4906
+ IGC_IS_FLAG_ENABLED (ForceSupportsAutoGRFSelection)
4907
+ || m_program->m_Platform ->supportsVRT () && m_program->m_DriverInfo ->supportsVRT () && IGC_IS_FLAG_ENABLED (EnableVRT)
4908
+ ) {
4909
4909
// When user hasn't specified number of threads, we can rely on
4910
4910
// compiler heuristics
4911
4911
SaveOption (vISA_AutoGRFSelection, true );
0 commit comments