mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
feature: prework to enable memory prefetch
Related-To: NEO-14703 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5714d9170c
commit
ff7d0a76cb
@@ -223,6 +223,9 @@ uint64_t UnitTestHelper<Family>::getWalkerActivePostSyncAddress(WalkerType *walk
|
||||
return 0;
|
||||
}
|
||||
|
||||
template <>
|
||||
void UnitTestHelper<Family>::skipStatePrefetch(GenCmdList::iterator &iter) {}
|
||||
|
||||
template struct UnitTestHelper<Family>;
|
||||
template struct UnitTestHelperWithHeap<Family>;
|
||||
|
||||
|
||||
@@ -135,6 +135,7 @@ struct UnitTestHelper : public UnitTestHelperBase<GfxFamily> {
|
||||
static size_t getWalkerSize(bool isHeaplessEnabled);
|
||||
template <typename WalkerType>
|
||||
static uint64_t getWalkerActivePostSyncAddress(WalkerType *walkerCmd);
|
||||
static void skipStatePrefetch(GenCmdList::iterator &iter);
|
||||
|
||||
static bool isHeaplessAllowed();
|
||||
};
|
||||
|
||||
@@ -35,4 +35,11 @@ bool UnitTestHelper<GfxFamily>::isAdditionalSynchronizationRequired() {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void UnitTestHelper<GfxFamily>::skipStatePrefetch(GenCmdList::iterator &iter) {
|
||||
while (genCmdCast<typename GfxFamily::STATE_PREFETCH *>(*iter)) {
|
||||
iter++;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -49,6 +49,9 @@ bool UnitTestHelper<Family>::requiresTimestampPacketsInSystemMemory(HardwareInfo
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
void UnitTestHelper<Family>::skipStatePrefetch(GenCmdList::iterator &iter) {}
|
||||
|
||||
template struct UnitTestHelper<Family>;
|
||||
template struct UnitTestHelperWithHeap<Family>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user