Add shader metadata for extra GRFs for latency scheduling

New metadata field to allow setting extra GRFs to be used for latency
scheduling.
This commit is contained in:
Merecki, Mariusz
2025-10-29 09:17:48 +00:00
committed by igcbot
parent 7106daa2da
commit 81b480d3d3
2 changed files with 4 additions and 0 deletions

View File

@ -3622,6 +3622,9 @@ void CEncoder::InitVISABuilderOptions(TARGET_PLATFORM VISAPlatform, bool canAbor
if (uint32_t Val = IGC_GET_FLAG_VALUE(VISAPreSchedExtraGRF)) {
SaveOption(vISA_preRA_ScheduleExtraGRF, Val);
} else if (context->type == ShaderType::COMPUTE_SHADER &&
context->getModuleMetaData()->csInfo.VISAPreSchedScheduleExtraGRF > 0) {
SaveOption(vISA_preRA_ScheduleExtraGRF, context->getModuleMetaData()->csInfo.VISAPreSchedScheduleExtraGRF);
}
if (uint32_t Val = IGC_GET_FLAG_VALUE(VISAScheduleStartBBID)) {

View File

@ -537,6 +537,7 @@ enum class ShaderTypeMD
unsigned int forceTotalGRFNum = 0; // 0 means not forced
unsigned int VISAPreSchedRPThreshold = 0; // 0 means use the default
unsigned int VISAPreSchedCtrl = 0; // 0 means use the default
unsigned int VISAPreSchedScheduleExtraGRF = 0; // additional GRF for latency scheduling
unsigned int SetLoopUnrollThreshold = 0; // 0 means use the default
bool forceSpillCompression = false;
bool allowLowerSimd = false;