Add api specific config for allocation cache

Currently disabled for both opencl and level zero

Related-To: NEO-6893

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2022-09-05 13:17:18 +00:00
committed by Compute-Runtime-Automation
parent 09bb0766e2
commit 16798467ac
10 changed files with 40 additions and 4 deletions

View File

@ -44,6 +44,10 @@ TEST(ApiSpecificConfigOclTests, WhenGettingRegistryPathThenOclRegistryPathIsRetu
EXPECT_STREQ(oclRegPath, ApiSpecificConfig::getRegistryPath());
}
TEST(ApiSpecificConfigOclTests, WhenCheckingIfDeviceAllocationCacheIsEnabledThenReturnFalse) {
EXPECT_FALSE(ApiSpecificConfig::isDeviceAllocationCacheEnabled());
}
TEST(ApiSpecificConfigOclTests, givenEnableStatelessCompressionWhenProvidingSvmGpuAllocationThenPreferCompressedBuffer) {
DebugManagerStateRestore dbgRestorer;
DebugManager.flags.RenderCompressedBuffersEnabled.set(1);