mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
fix(AIL) Make DaVinci Resolve AIL apply to all platforms
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bf2072c3ea
commit
3cf5850172
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user