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:
Zbigniew Zdanowicz
2025-06-02 23:34:38 +00:00
committed by Compute-Runtime-Automation
parent f2364b437d
commit bafb2b6190
8 changed files with 22 additions and 0 deletions

View File

@@ -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;

View File

@@ -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

View File

@@ -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();
};

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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