Revert "Disable stateless compression in sba on indirect host access flag"

Related-To: NEO-5107

This reverts commit 658fa6d85419f4a1f4876b40ef74f77095c29125.

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
Milczarek, Slawomir
2021-09-29 10:55:13 +00:00
committed by Compute-Runtime-Automation
parent 4ba4c32766
commit 2abcef2c35
2 changed files with 6 additions and 18 deletions

View File

@ -414,7 +414,7 @@ TEST_F(KernelArgBufferTest, givenInvalidKernelObjWhenHasDirectStatelessAccessToH
EXPECT_FALSE(pKernel->hasDirectStatelessAccessToHostMemory());
}
TEST_F(KernelArgBufferTest, givenKernelWithIndirectStatelessAccessAndKernelExecInfoWithUsmPtrsWhenHasIndirectStatelessAccessToHostMemoryIsCalledThenReturnTrueForHostMemoryAllocations) {
TEST_F(KernelArgBufferTest, givenKernelWithIndirectStatelessAccessWhenHasIndirectStatelessAccessToHostMemoryIsCalledThenReturnTrueForHostMemoryAllocations) {
KernelInfo kernelInfo;
EXPECT_FALSE(kernelInfo.hasIndirectStatelessAccess);
@ -443,7 +443,7 @@ TEST_F(KernelArgBufferTest, givenKernelWithIndirectStatelessAccessAndKernelExecI
}
}
TEST_F(KernelArgBufferTest, givenKernelWithIndirectStatelessAccessAndUsmAllocationsInSVMAllocsManagerWhenHasIndirectStatelessAccessToHostMemoryIsCalledThenReturnTrueForHostMemoryAllocations) {
TEST_F(KernelArgBufferTest, givenKernelExecInfoWithIndirectStatelessAccessWhenHasIndirectStatelessAccessToHostMemoryIsCalledThenReturnTrueForHostMemoryAllocations) {
KernelInfo kernelInfo;
kernelInfo.hasIndirectStatelessAccess = true;
@ -456,6 +456,9 @@ TEST_F(KernelArgBufferTest, givenKernelWithIndirectStatelessAccessAndUsmAllocati
return;
}
mockKernel.unifiedMemoryControls.indirectHostAllocationsAllowed = true;
EXPECT_FALSE(mockKernel.hasIndirectStatelessAccessToHostMemory());
auto deviceProperties = SVMAllocsManager::UnifiedMemoryProperties(InternalMemoryType::DEVICE_UNIFIED_MEMORY, mockKernel.getContext().getRootDeviceIndices(), mockKernel.getContext().getDeviceBitfields());
deviceProperties.device = &pClDevice->getDevice();
auto unifiedDeviceMemoryAllocation = svmAllocationsManager->createUnifiedMemoryAllocation(4096u, deviceProperties);
@ -469,17 +472,6 @@ TEST_F(KernelArgBufferTest, givenKernelWithIndirectStatelessAccessAndUsmAllocati
svmAllocationsManager->freeSVMAlloc(unifiedHostMemoryAllocation);
}
TEST_F(KernelArgBufferTest, givenKernelExecInfoWithIndirectHostAllocationsAllowedWhenHasIndirectStatelessAccessToHostMemoryIsCalledThenReturnTrue) {
KernelInfo kernelInfo;
MockKernel mockKernel(pProgram, kernelInfo, *pClDevice);
EXPECT_FALSE(mockKernel.unifiedMemoryControls.indirectHostAllocationsAllowed);
EXPECT_FALSE(mockKernel.hasIndirectStatelessAccessToHostMemory());
mockKernel.unifiedMemoryControls.indirectHostAllocationsAllowed = true;
EXPECT_TRUE(mockKernel.hasIndirectStatelessAccessToHostMemory());
}
TEST_F(KernelArgBufferTest, whenSettingAuxTranslationRequiredThenIsAuxTranslationRequiredReturnsCorrectValue) {
for (auto auxTranslationRequired : {false, true}) {
pKernel->setAuxTranslationRequired(auxTranslationRequired);