mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
fix: Add AIL for Adobe Premiere Pro
Use legacy platform name: "Intel(R) OpenCL". Resolves: HSD-22018809561 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d9f938f3db
commit
afba02afa9
@@ -49,6 +49,25 @@ HWTEST2_F(AILTests, givenInitilizedTemplateWhenApplyWithBlenderIsCalledThenFP64S
|
||||
EXPECT_EQ(rtTable.ftrSupportsFP64, true);
|
||||
}
|
||||
|
||||
HWTEST2_F(AILTests, givenInitilizedTemplateWhenApplyWithPremiereProIsCalledThenPreferredPlatformNameIsSet, IsAtLeastGen9) {
|
||||
VariableBackup<AILConfiguration *> ailConfigurationBackup(&ailConfigurationTable[productFamily]);
|
||||
|
||||
AILMock<productFamily> ailTemp;
|
||||
ailTemp.processName = "premiere pro";
|
||||
ailConfigurationTable[productFamily] = &ailTemp;
|
||||
|
||||
auto ailConfiguration = AILConfiguration::get(productFamily);
|
||||
ASSERT_NE(nullptr, ailConfiguration);
|
||||
|
||||
NEO::RuntimeCapabilityTable rtTable = {};
|
||||
rtTable.preferredPlatformName = nullptr;
|
||||
|
||||
ailConfiguration->apply(rtTable);
|
||||
|
||||
EXPECT_NE(nullptr, rtTable.preferredPlatformName);
|
||||
EXPECT_STREQ("Intel(R) OpenCL", rtTable.preferredPlatformName);
|
||||
}
|
||||
|
||||
HWTEST2_F(AILTests, whenCheckingIfSourcesContainKernelThenCorrectResultIsReturned, IsAtLeastGen12lp) {
|
||||
VariableBackup<AILConfiguration *> ailConfigurationBackup(&ailConfigurationTable[productFamily]);
|
||||
AILMock<productFamily> ail;
|
||||
|
||||
Reference in New Issue
Block a user