Disable stateless compression in sba on indirect host access flag

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
Milczarek, Slawomir
2021-09-21 14:44:15 +00:00
committed by Compute-Runtime-Automation
parent a2e41716e2
commit 5c4c02d2e7
2 changed files with 18 additions and 6 deletions

View File

@ -2563,6 +2563,10 @@ bool Kernel::hasDirectStatelessAccessToHostMemory() const {
}
bool Kernel::hasIndirectStatelessAccessToHostMemory() const {
if (unifiedMemoryControls.indirectHostAllocationsAllowed) {
return true;
}
if (!kernelInfo.hasIndirectStatelessAccess) {
return false;
}
@ -2573,7 +2577,7 @@ bool Kernel::hasIndirectStatelessAccessToHostMemory() const {
}
}
if (unifiedMemoryControls.indirectHostAllocationsAllowed) {
if (getContext().getSVMAllocsManager()) {
return getContext().getSVMAllocsManager()->hasHostAllocations();
}