2020-10-01 19:31:19 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2021 Intel Corporation
|
2020-10-01 19:31:19 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
|
|
#include "shared/source/helpers/api_specific_config.h"
|
|
|
|
|
|
|
|
namespace NEO {
|
2021-08-03 16:24:06 +08:00
|
|
|
bool ApiSpecificConfig::isStatelessCompressionSupported() {
|
|
|
|
return false;
|
|
|
|
}
|
2020-10-01 19:31:19 +08:00
|
|
|
bool ApiSpecificConfig::getHeapConfiguration() {
|
|
|
|
return DebugManager.flags.UseExternalAllocatorForSshAndDsh.get();
|
|
|
|
}
|
2020-10-07 19:53:56 +08:00
|
|
|
bool ApiSpecificConfig::getBindlessConfiguration() {
|
|
|
|
if (DebugManager.flags.UseBindlessMode.get() != -1) {
|
|
|
|
return DebugManager.flags.UseBindlessMode.get();
|
2020-10-01 19:31:19 +08:00
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
2021-05-14 01:46:01 +08:00
|
|
|
ApiSpecificConfig::ApiType ApiSpecificConfig::getApiType() {
|
|
|
|
return ApiSpecificConfig::OCL;
|
|
|
|
}
|
2020-10-01 19:31:19 +08:00
|
|
|
} // namespace NEO
|