Add systolic getter method to unit test helper

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2022-09-19 13:09:56 +00:00
committed by Compute-Runtime-Automation
parent 0ce963d84a
commit 1ca5d57ab0
4 changed files with 16 additions and 0 deletions

View File

@@ -56,5 +56,10 @@ bool UnitTestHelper<Family>::getDisableFusionStateFromFrontEndCommand(const type
return feCmd.getDisableSlice0Subslice2();
}
template <>
bool UnitTestHelper<Family>::getSystolicFlagValueFromPipelineSelectCommand(const typename Family::PIPELINE_SELECT &pipelineSelectCmd) {
return pipelineSelectCmd.getSpecialModeEnable();
}
template struct UnitTestHelper<Family>;
} // namespace NEO

View File

@@ -90,6 +90,7 @@ struct UnitTestHelper {
static bool getDisableFusionStateFromFrontEndCommand(const typename GfxFamily::VFE_STATE_TYPE &feCmd);
static bool getComputeDispatchAllWalkerFromFrontEndCommand(const typename GfxFamily::VFE_STATE_TYPE &feCmd);
static bool getSystolicFlagValueFromPipelineSelectCommand(const typename GfxFamily::PIPELINE_SELECT &pipelineSelectCmd);
};
} // namespace NEO

View File

@@ -87,4 +87,9 @@ std::vector<GenCmdList::iterator> UnitTestHelper<GfxFamily>::findAllMidThreadPre
return findAll<typename GfxFamily::GPGPU_CSR_BASE_ADDRESS *>(begin, end);
}
template <typename GfxFamily>
bool UnitTestHelper<GfxFamily>::getSystolicFlagValueFromPipelineSelectCommand(const typename GfxFamily::PIPELINE_SELECT &pipelineSelectCmd) {
return false;
}
} // namespace NEO

View File

@@ -116,4 +116,9 @@ std::vector<GenCmdList::iterator> UnitTestHelper<GfxFamily>::findAllMidThreadPre
return emptyList;
}
template <typename GfxFamily>
bool UnitTestHelper<GfxFamily>::getSystolicFlagValueFromPipelineSelectCommand(const typename GfxFamily::PIPELINE_SELECT &pipelineSelectCmd) {
return pipelineSelectCmd.getSystolicModeEnable();
}
} // namespace NEO