mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
test: add missing test for compression selector
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
91a9b925f7
commit
a8c125ceb9
@@ -8,7 +8,9 @@
|
||||
#include "shared/source/built_ins/built_ins.h"
|
||||
#include "shared/source/command_container/implicit_scaling.h"
|
||||
#include "shared/source/compiler_interface/default_cache_config.h"
|
||||
#include "shared/source/debug_settings/debug_settings_manager.h"
|
||||
#include "shared/source/execution_environment/root_device_environment.h"
|
||||
#include "shared/source/helpers/api_specific_config.h"
|
||||
#include "shared/source/memory_manager/compression_selector.h"
|
||||
#include "shared/source/page_fault_manager/cpu_page_fault_manager.h"
|
||||
|
||||
@@ -29,4 +31,43 @@ const char *getAdditionalBuiltinAsString(EBuiltInOps::Type builtin) { return nul
|
||||
void RootDeviceEnvironment::initApiGfxCoreHelper() {
|
||||
}
|
||||
|
||||
ApiSpecificConfig::ApiType apiTypeForUlts = ApiSpecificConfig::OCL;
|
||||
bool isStatelessCompressionSupportedForUlts = true;
|
||||
|
||||
bool ApiSpecificConfig::isStatelessCompressionSupported() {
|
||||
return isStatelessCompressionSupportedForUlts;
|
||||
}
|
||||
bool ApiSpecificConfig::isBcsSplitWaSupported() {
|
||||
return false;
|
||||
}
|
||||
bool ApiSpecificConfig::getHeapConfiguration() {
|
||||
return DebugManager.flags.UseExternalAllocatorForSshAndDsh.get();
|
||||
}
|
||||
bool ApiSpecificConfig::getBindlessConfiguration() {
|
||||
if (DebugManager.flags.UseBindlessMode.get() != -1) {
|
||||
return DebugManager.flags.UseBindlessMode.get();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool ApiSpecificConfig::isDeviceAllocationCacheEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
ApiSpecificConfig::ApiType ApiSpecificConfig::getApiType() {
|
||||
return apiTypeForUlts;
|
||||
}
|
||||
|
||||
uint64_t ApiSpecificConfig::getReducedMaxAllocSize(uint64_t maxAllocSize) {
|
||||
return maxAllocSize / 2;
|
||||
}
|
||||
|
||||
std::string ApiSpecificConfig::getName() {
|
||||
return "shared";
|
||||
}
|
||||
const char *ApiSpecificConfig::getRegistryPath() {
|
||||
return "";
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user