prepare tests to enable heap sharing feature

Related-To: NEO-7142

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2022-10-04 17:21:09 +00:00
committed by Compute-Runtime-Automation
parent e9a7c990ef
commit 322719e7a2
11 changed files with 151 additions and 17 deletions

View File

@ -345,7 +345,7 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
const bool hasDsh = hwInfo.capabilityTable.supportsImages && dsh != nullptr;
bool dshDirty = hasDsh ? dshState.updateAndCheck(dsh) : false;
bool iohDirty = iohState.updateAndCheck(ioh);
bool sshDirty = sshState.updateAndCheck(ssh);
bool sshDirty = ssh != nullptr ? sshState.updateAndCheck(ssh) : false;
auto isStateBaseAddressDirty = dshDirty || iohDirty || sshDirty || stateBaseAddressDirty;
@ -504,10 +504,13 @@ CompletionStamp CommandStreamReceiverHw<GfxFamily>::flushTask(
dshAllocation->setEvictable(false);
}
auto iohAllocation = ioh->getGraphicsAllocation();
auto sshAllocation = ssh->getGraphicsAllocation();
if (ssh != nullptr) {
auto sshAllocation = ssh->getGraphicsAllocation();
this->makeResident(*sshAllocation);
}
this->makeResident(*iohAllocation);
this->makeResident(*sshAllocation);
iohAllocation->setEvictable(false);
this->makeResident(*tagAllocation);