feature: Calculate StateSaveAreaSize with siplib

Related-To: NEO-15642
Signed-off-by: Wesley Waugh <wesley.waugh@intel.com>
This commit is contained in:
Wesley Waugh
2025-10-15 23:14:35 +00:00
committed by Compute-Runtime-Automation
parent 6d00cb7081
commit e2c8175caf
6 changed files with 71 additions and 5 deletions

View File

@@ -99,7 +99,10 @@ size_t SipKernel::getStateSaveAreaSize(Device *device) const {
auto numSlices = std::max(hwInfo.gtSystemInfo.MaxSlicesSupported, NEO::GfxCoreHelper::getHighestEnabledSlice(hwInfo));
size_t stateSaveAreaSize = 0;
if (hdr->versionHeader.version.major == 4) {
const auto sipExternalLib = device->getSipExternalLibInterface();
if (sipExternalLib != nullptr) {
stateSaveAreaSize = sipExternalLib->getStateSaveAreaSize();
} else if (hdr->versionHeader.version.major == 4) {
if (debugManager.flags.ForceTotalWMTPDataSize.get() > -1) {
stateSaveAreaSize = static_cast<size_t>(debugManager.flags.ForceTotalWMTPDataSize.get());
} else {