Revert "feature: add AIL for selected apps on MTL"
This reverts commit 68909a895a
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
parent
ea7b7d7009
commit
bef6b64148
|
@ -35,7 +35,6 @@ enum class AILEnumeration : uint32_t {
|
|||
DISABLE_COMPRESSION,
|
||||
ENABLE_FP64,
|
||||
DISABLE_HOST_PTR_TRACKING,
|
||||
DISABLE_DEFAULT_CCS,
|
||||
AIL_MAX_OPTIONS_COUNT
|
||||
};
|
||||
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
*/
|
||||
|
||||
#include "shared/source/ail/ail_configuration_base.inl"
|
||||
#include "shared/source/helpers/debug_helpers.h"
|
||||
#include "shared/source/helpers/hw_info.h"
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
@ -15,29 +13,7 @@
|
|||
namespace NEO {
|
||||
static EnableAIL<IGFX_METEORLAKE> enableAILMTL;
|
||||
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapMTL = {
|
||||
{"Photoshop", {AILEnumeration::DISABLE_DEFAULT_CCS}},
|
||||
{"AfterFX (Beta)", {AILEnumeration::DISABLE_DEFAULT_CCS}},
|
||||
{"AfterFX", {AILEnumeration::DISABLE_DEFAULT_CCS}},
|
||||
{"Adobe Premiere Pro", {AILEnumeration::DISABLE_DEFAULT_CCS}},
|
||||
};
|
||||
|
||||
template <>
|
||||
inline void AILConfigurationHw<IGFX_METEORLAKE>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {
|
||||
|
||||
auto search = applicationMapMTL.find(processName);
|
||||
|
||||
if (search != applicationMapMTL.end()) {
|
||||
for (size_t i = 0; i < search->second.size(); ++i) {
|
||||
switch (search->second[i]) {
|
||||
case AILEnumeration::DISABLE_DEFAULT_CCS:
|
||||
runtimeCapabilityTable.defaultEngineType = aub_stream::ENGINE_RCS;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapMTL = {};
|
||||
|
||||
template class AILConfigurationHw<IGFX_METEORLAKE>;
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ if(TESTS_MTL)
|
|||
target_sources(neo_shared_tests PRIVATE
|
||||
${NEO_CORE_tests_xe_hpg_core_mtl_excludes}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ail_tests_mtl.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/compute_mode_tests_mtl.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/excludes_xe_hpg_core_mtl.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/hw_aot_config_tests_mtl.cpp
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/ail/ail_configuration.h"
|
||||
#include "shared/test/common/helpers/default_hw_info.h"
|
||||
#include "shared/test/common/helpers/variable_backup.h"
|
||||
#include "shared/test/common/test_macros/hw_test.h"
|
||||
|
||||
namespace NEO {
|
||||
|
||||
using AILTestsMTL = ::testing::Test;
|
||||
|
||||
HWTEST2_F(AILTestsMTL, givenMtlWhenAdobeAppIsDetectedThenCCSItNotDefaultEngine, IsMTL) {
|
||||
class AILMock : public AILConfigurationHw<productFamily> {
|
||||
public:
|
||||
using AILConfiguration::apply;
|
||||
using AILConfiguration::processName;
|
||||
};
|
||||
|
||||
VariableBackup<AILConfiguration *> ailConfigurationBackup(&ailConfigurationTable[productFamily]);
|
||||
AILMock ail;
|
||||
ailConfigurationTable[productFamily] = &ail;
|
||||
|
||||
auto capabilityTable = defaultHwInfo->capabilityTable;
|
||||
|
||||
for (auto &processName : {"Photoshop", "Adobe Premiere Pro", "AfterFX", "AfterFX (Beta)"}) {
|
||||
ail.processName = processName;
|
||||
capabilityTable.defaultEngineType = aub_stream::ENGINE_CCS2;
|
||||
ail.apply(capabilityTable);
|
||||
EXPECT_EQ(aub_stream::ENGINE_RCS, capabilityTable.defaultEngineType);
|
||||
}
|
||||
|
||||
ail.processName = "UnknownProcess";
|
||||
capabilityTable.defaultEngineType = aub_stream::ENGINE_CCS3;
|
||||
ail.apply(capabilityTable);
|
||||
EXPECT_EQ(aub_stream::ENGINE_CCS3, capabilityTable.defaultEngineType);
|
||||
}
|
||||
} // namespace NEO
|
Loading…
Reference in New Issue