File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -4435,8 +4435,7 @@ namespace IGC
4435
4435
bool enableForRetry = m_program->m_DriverInfo ->enableVISAPreRASchedulerForRetry () ||
4436
4436
context->m_retryManager .AllowVISAPreRAScheduler ();
4437
4437
// PreRA scheduler runs always when VRT is enabled
4438
- enableForRetry |= m_program->m_Platform ->supportsVRT () && m_program->m_DriverInfo ->supportsVRT () &&
4439
- (context->getModuleMetaData ()->compOpt .EnableVRT || IGC_IS_FLAG_ENABLED (EnableVRT));
4438
+ enableForRetry |= context->supportsVRT ();
4440
4439
4441
4440
if (IGC_IS_FLAG_ENABLED (EnableVISAPreSched) &&
4442
4441
m_program->m_DriverInfo ->enableVISAPreRAScheduler () &&
@@ -4923,9 +4922,7 @@ namespace IGC
4923
4922
else if ((m_program->m_Platform ->supportsAutoGRFSelection () &&
4924
4923
context->m_DriverInfo .supportsAutoGRFSelection () &&
4925
4924
IGC_IS_FLAG_ENABLED (ForceSupportsAutoGRFSelection)) ||
4926
- (m_program->m_Platform ->supportsVRT () &&
4927
- m_program->m_DriverInfo ->supportsVRT () &&
4928
- IGC_IS_FLAG_ENABLED (EnableVRT)))
4925
+ context->supportsVRT ())
4929
4926
{
4930
4927
// When user hasn't specified number of threads, we can rely on
4931
4928
// compiler heuristics
Original file line number Diff line number Diff line change @@ -127,8 +127,8 @@ namespace IGC
127
127
(m_DriverInfo.supportsAutoGRFSelection () ||
128
128
m_InternalOptions.IntelEnableAutoLargeGRF ||
129
129
m_Options.IntelEnableAutoLargeGRF )
130
- || platform. supportsVRT () && IGC_IS_FLAG_ENABLED (EnableVRT )
131
- ) && !m_InternalOptions.Intel128GRFPerThread &&
130
+ || supportsVRT ())
131
+ && !m_InternalOptions.Intel128GRFPerThread &&
132
132
!m_Options.Intel128GRFPerThread &&
133
133
!m_InternalOptions.Intel256GRFPerThread &&
134
134
!m_Options.Intel256GRFPerThread
Original file line number Diff line number Diff line change @@ -1315,6 +1315,12 @@ namespace IGC
1315
1315
IGC_IS_FLAG_ENABLED (EnableStatelessToStateful) &&
1316
1316
!m_instrTypes.hasInlineAsmPointerAccess );
1317
1317
}
1318
+
1319
+ bool supportsVRT () const
1320
+ {
1321
+ return platform.supportsVRT () && m_DriverInfo.supportsVRT () &&
1322
+ (getModuleMetaData ()->compOpt .EnableVRT || IGC_IS_FLAG_ENABLED (EnableVRT));
1323
+ }
1318
1324
};
1319
1325
1320
1326
struct SComputeShaderSecondCompileInput
You can’t perform that action at this time.
0 commit comments