mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
Compute-Runtime-Automation

parent
4ba4c32766
commit
2abcef2c35
@ -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);
|
||||
|
Reference in New Issue
Block a user