refactor: reposition ail application map

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2023-11-08 20:35:48 +00:00
committed by Compute-Runtime-Automation
parent 30777d4d4c
commit 506e03e00c
2 changed files with 6 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
#include "shared/source/helpers/hw_info.h"
#include <map>
#include <string_view>
#include <vector>
namespace NEO {
/*
@@ -24,6 +24,8 @@ std::map<std::string_view, std::vector<AILEnumeration>> applicationMap = {{"blen
// Modify reported platform name to ensure older versions of Adobe Premiere Pro are able to recognize the GPU device
{"Adobe Premiere Pro", {AILEnumeration::ENABLE_LEGACY_PLATFORM_NAME}}};
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapMTL = {{"svchost", {AILEnumeration::DISABLE_DIRECT_SUBMISSION}}};
const std::set<std::string_view> applicationsContextSyncFlag = {};
AILConfiguration *ailConfigurationTable[IGFX_MAX_PRODUCT] = {};

View File

@@ -14,9 +14,10 @@
#include <vector>
namespace NEO {
static EnableAIL<IGFX_METEORLAKE> enableAILMTL;
std::map<std::string_view, std::vector<AILEnumeration>> applicationMapMTL = {{"svchost", {AILEnumeration::DISABLE_DIRECT_SUBMISSION}}};
extern std::map<std::string_view, std::vector<AILEnumeration>> applicationMapMTL;
static EnableAIL<IGFX_METEORLAKE> enableAILMTL;
template <>
void AILConfigurationHw<IGFX_METEORLAKE>::applyExt(RuntimeCapabilityTable &runtimeCapabilityTable) {