mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
feature: Calculate StateSaveAreaSize with siplib
Related-To: NEO-15642 Signed-off-by: Wesley Waugh <wesley.waugh@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6d00cb7081
commit
e2c8175caf
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user