/* * Copyright (C) 2024 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/debug_settings/debug_settings_manager.h" #include "shared/source/helpers/hw_info.h" #include "shared/test/common/cmd_parse/gen_cmd_parse.h" #include "shared/test/common/helpers/unit_test_helper.h" namespace NEO { template const AuxTranslationMode UnitTestHelper::requiredAuxTranslationMode = AuxTranslationMode::none; template bool UnitTestHelper::isAdditionalMiSemaphoreWaitRequired(const RootDeviceEnvironment &rootDeviceEnvironment) { auto programGlobalFenceAsMiMemFenceCommandInCommandStream = true; if (debugManager.flags.ProgramGlobalFenceAsMiMemFenceCommandInCommandStream.get() != -1) { programGlobalFenceAsMiMemFenceCommandInCommandStream = !!debugManager.flags.ProgramGlobalFenceAsMiMemFenceCommandInCommandStream.get(); } return !programGlobalFenceAsMiMemFenceCommandInCommandStream; } template bool UnitTestHelper::getSystolicFlagValueFromPipelineSelectCommand(const typename GfxFamily::PIPELINE_SELECT &pipelineSelectCmd) { return false; } template bool UnitTestHelper::requiresTimestampPacketsInSystemMemory(HardwareInfo &hwInfo) { return !hwInfo.featureTable.flags.ftrLocalMemory; } template GenCmdList::iterator UnitTestHelper::findCsrBaseAddressCommand(GenCmdList::iterator begin, GenCmdList::iterator end) { return find(begin, end); } template std::vector UnitTestHelper::findAllMidThreadPreemptionAllocationCommand(GenCmdList::iterator begin, GenCmdList::iterator end) { return findAll(begin, end); } template bool UnitTestHelper::timestampRegisterHighAddress() { return true; } template void UnitTestHelper::setExtraMidThreadPreemptionFlag(HardwareInfo &hwInfo, bool value) { hwInfo.featureTable.flags.ftrWalkerMTP = value; } template bool UnitTestHelper::getPipeControlHdcPipelineFlush(const typename GfxFamily::PIPE_CONTROL &pipeControl) { return pipeControl.getDataportFlush(); } template void UnitTestHelper::setPipeControlHdcPipelineFlush(typename GfxFamily::PIPE_CONTROL &pipeControl, bool hdcPipelineFlush) { pipeControl.setDataportFlush(hdcPipelineFlush); } } // namespace NEO