fix: change process name in AIL for Adobe Premiere Pro

Related-To: HSD-22018809561
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com>
This commit is contained in:
Cencelewska, Katarzyna
2023-09-14 20:04:46 +00:00
committed by Compute-Runtime-Automation
parent 6fc673b0fe
commit d5441cc2d9
2 changed files with 4 additions and 4 deletions

View File

@@ -21,8 +21,8 @@ namespace NEO {
*/ */
std::map<std::string_view, std::vector<AILEnumeration>> applicationMap = {{"blender", {AILEnumeration::ENABLE_FP64}}, std::map<std::string_view, std::vector<AILEnumeration>> applicationMap = {{"blender", {AILEnumeration::ENABLE_FP64}},
// Modify reported platform name to ensure older versions of Premiere Pro are able to recognize the GPU device // Modify reported platform name to ensure older versions of Adobe Premiere Pro are able to recognize the GPU device
{"premiere pro", {AILEnumeration::ENABLE_LEGACY_PLATFORM_NAME}}}; {"Adobe Premiere Pro", {AILEnumeration::ENABLE_LEGACY_PLATFORM_NAME}}};
AILConfiguration *ailConfigurationTable[IGFX_MAX_PRODUCT] = {}; AILConfiguration *ailConfigurationTable[IGFX_MAX_PRODUCT] = {};

View File

@@ -49,11 +49,11 @@ HWTEST2_F(AILTests, givenInitilizedTemplateWhenApplyWithBlenderIsCalledThenFP64S
EXPECT_EQ(rtTable.ftrSupportsFP64, true); EXPECT_EQ(rtTable.ftrSupportsFP64, true);
} }
HWTEST2_F(AILTests, givenInitilizedTemplateWhenApplyWithPremiereProIsCalledThenPreferredPlatformNameIsSet, IsAtLeastGen9) { HWTEST2_F(AILTests, givenInitilizedTemplateWhenApplyWithAdobePremiereProIsCalledThenPreferredPlatformNameIsSet, IsAtLeastGen9) {
VariableBackup<AILConfiguration *> ailConfigurationBackup(&ailConfigurationTable[productFamily]); VariableBackup<AILConfiguration *> ailConfigurationBackup(&ailConfigurationTable[productFamily]);
AILMock<productFamily> ailTemp; AILMock<productFamily> ailTemp;
ailTemp.processName = "premiere pro"; ailTemp.processName = "Adobe Premiere Pro";
ailConfigurationTable[productFamily] = &ailTemp; ailConfigurationTable[productFamily] = &ailTemp;
auto ailConfiguration = AILConfiguration::get(productFamily); auto ailConfiguration = AILConfiguration::get(productFamily);