mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
test: add new method to unit test helper
- update base command list mock Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f2364b437d
commit
bafb2b6190
@@ -303,6 +303,7 @@ struct WhiteBox<::L0::CommandListImp> : public ::L0::CommandListImp {
|
||||
using BaseClass::currentDynamicStateBaseAddress;
|
||||
using BaseClass::currentIndirectObjectBaseAddress;
|
||||
using BaseClass::currentSurfaceStateBaseAddress;
|
||||
using BaseClass::dcFlushSupport;
|
||||
using BaseClass::device;
|
||||
using BaseClass::dispatchCmdListBatchBufferAsPrimary;
|
||||
using BaseClass::doubleSbaWa;
|
||||
|
||||
@@ -217,6 +217,14 @@ bool UnitTestHelper<Family>::getSystolicFlagValueFromPipelineSelectCommand(const
|
||||
return pipelineSelectCmd.getSpecialModeEnable();
|
||||
}
|
||||
|
||||
template <>
|
||||
template <typename WalkerType>
|
||||
uint64_t UnitTestHelper<Family>::getWalkerActivePostSyncAddress(WalkerType *walkerCmd) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
template struct UnitTestHelper<Family>;
|
||||
template struct UnitTestHelperWithHeap<Family>;
|
||||
|
||||
template uint64_t UnitTestHelper<Family>::getWalkerActivePostSyncAddress<Family::GPGPU_WALKER>(Family::GPGPU_WALKER *walkerCmd);
|
||||
} // namespace NEO
|
||||
|
||||
@@ -133,6 +133,8 @@ struct UnitTestHelper : public UnitTestHelperBase<GfxFamily> {
|
||||
static void getSpaceAndInitWalkerCmd(LinearStream &stream, bool heapless);
|
||||
static void *getInitWalkerCmd(bool heapless);
|
||||
static size_t getWalkerSize(bool isHeaplessEnabled);
|
||||
template <typename WalkerType>
|
||||
static uint64_t getWalkerActivePostSyncAddress(WalkerType *walkerCmd);
|
||||
|
||||
static bool isHeaplessAllowed();
|
||||
};
|
||||
|
||||
@@ -183,4 +183,10 @@ void *UnitTestHelper<GfxFamily>::getInitWalkerCmd(bool heapless) {
|
||||
return new COMPUTE_WALKER;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
template <typename WalkerType>
|
||||
uint64_t UnitTestHelper<GfxFamily>::getWalkerActivePostSyncAddress(WalkerType *walkerCmd) {
|
||||
return walkerCmd->getPostSync().getDestinationAddress();
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -20,4 +20,5 @@ namespace NEO {
|
||||
template struct UnitTestHelper<Family>;
|
||||
template struct UnitTestHelperWithHeap<Family>;
|
||||
|
||||
template uint64_t UnitTestHelper<Family>::getWalkerActivePostSyncAddress<Family::COMPUTE_WALKER>(Family::COMPUTE_WALKER *walkerCmd);
|
||||
} // namespace NEO
|
||||
|
||||
@@ -44,4 +44,5 @@ uint32_t UnitTestHelper<Family>::getProgrammedGrfValue(CommandStreamReceiver &cs
|
||||
template struct UnitTestHelper<Family>;
|
||||
template struct UnitTestHelperWithHeap<Family>;
|
||||
|
||||
template uint64_t UnitTestHelper<Family>::getWalkerActivePostSyncAddress<Family::COMPUTE_WALKER>(Family::COMPUTE_WALKER *walkerCmd);
|
||||
} // namespace NEO
|
||||
|
||||
@@ -60,4 +60,5 @@ void UnitTestHelper<Family>::verifyDummyBlitWa(const RootDeviceEnvironment *root
|
||||
template struct UnitTestHelper<Family>;
|
||||
template struct UnitTestHelperWithHeap<Family>;
|
||||
|
||||
template uint64_t UnitTestHelper<Family>::getWalkerActivePostSyncAddress<Family::COMPUTE_WALKER>(Family::COMPUTE_WALKER *walkerCmd);
|
||||
} // namespace NEO
|
||||
|
||||
@@ -51,4 +51,6 @@ bool UnitTestHelper<Family>::requiresTimestampPacketsInSystemMemory(HardwareInfo
|
||||
|
||||
template struct UnitTestHelper<Family>;
|
||||
template struct UnitTestHelperWithHeap<Family>;
|
||||
|
||||
template uint64_t UnitTestHelper<Family>::getWalkerActivePostSyncAddress<Family::COMPUTE_WALKER>(Family::COMPUTE_WALKER *walkerCmd);
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user