fix(AIL) Make DaVinci Resolve AIL apply to all platforms

Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
This commit is contained in:
Konstanty Misiak
2023-02-17 15:40:18 +00:00
committed by Compute-Runtime-Automation
parent bf2072c3ea
commit 3cf5850172
2 changed files with 33 additions and 1 deletions

View File

@@ -25,6 +25,15 @@ inline void AILConfigurationHw<Product>::forceFallbackToPatchtokensIfRequired(co
if (sourcesContain(kernelSources, dummyKernelSource)) {
requiresFallback = true;
}
for (const auto &name : {"Resolve",
"ArcControlAssist",
"ArcControl"}) {
if (processName == name) {
requiresFallback = true;
break;
}
}
}
template <PRODUCT_FAMILY Product>

View File

@@ -6,6 +6,8 @@
*/
#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 {
@@ -32,4 +34,25 @@ HWTEST2_F(AILBaseTests, whenKernelSourceIsNotANGenDummyKernelThenDoNotEnforcePat
EXPECT_FALSE(enforceRebuildToCTNI);
}
} // namespace NEO
HWTEST2_F(AILBaseTests, givenResolveApplicationNameWhenCheckingIfPatchtokenFallbackIsRequiredThenIsCorrectResult, IsAtLeastSkl) {
class AILMock : public AILConfigurationHw<productFamily> {
public:
using AILConfiguration::processName;
};
VariableBackup<AILConfiguration *> ailConfigurationBackup(&ailConfigurationTable[productFamily]);
AILMock ail;
ailConfigurationTable[productFamily] = &ail;
for (const auto &name : {"Resolve",
"ArcControlAssist",
"ArcControl"}) {
ail.processName = name;
ail.applyExt(defaultHwInfo->capabilityTable);
EXPECT_FALSE(defaultHwInfo->capabilityTable.blitterOperationsSupported);
}
}
} // namespace NEO