Fixed blitter path for printf with stateless compression in sba

Related-To: NEO-5107

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
Milczarek, Slawomir
2021-09-01 00:34:29 +00:00
committed by Compute-Runtime-Automation
parent c656866b74
commit 754d6e40e0
5 changed files with 70 additions and 11 deletions

View File

@@ -26,5 +26,15 @@ void HwHelperHw<Family>::setExtraAllocationData(AllocationData &allocationData,
allocationData.storageInfo.isLockable = false;
}
}
auto &helper = HwHelper::get(hwInfo.platform.eRenderCoreFamily);
if (helper.allowStatelessCompression(hwInfo)) {
if (properties.allocationType == GraphicsAllocation::AllocationType::GLOBAL_SURFACE ||
properties.allocationType == GraphicsAllocation::AllocationType::CONSTANT_SURFACE ||
properties.allocationType == GraphicsAllocation::AllocationType::PRINTF_SURFACE) {
allocationData.flags.requiresCpuAccess = false;
allocationData.storageInfo.isLockable = false;
}
}
}
} // namespace NEO