/* * Copyright (C) 2017-2018 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "unit_tests/gen_common/gen_cmd_parse.h" #include "gtest/gtest.h" using GenStruct = OCLRT::GEN9; using GenGfxFamily = OCLRT::SKLFamily; #include "unit_tests/gen_common/cmd_parse_base.inl" #include "unit_tests/gen_common/cmd_parse_base_mi_arb.inl" #include "unit_tests/gen_common/cmd_parse_gpgpu_walker.inl" #include "unit_tests/gen_common/cmd_parse_sip.inl" #include "unit_tests/helpers/hw_parse.h" #include "unit_tests/helpers/hw_parse.inl" template <> size_t CmdParse::getCommandLengthHwSpecific(void *cmd) { { auto pCmd = genCmdCast(cmd); if (pCmd) return pCmd->TheStructure.Common.DwordLength + 2; } { auto pCmd = genCmdCast(cmd); if (pCmd) return pCmd->TheStructure.Common.DwordLength + 2; } { auto pCmd = genCmdCast(cmd); if (pCmd) return pCmd->TheStructure.Common.DwordLength + 2; } { auto pCmd = genCmdCast(cmd); if (pCmd) return pCmd->TheStructure.Common.DwordLength + 2; } { auto pCmd = genCmdCast(cmd); if (pCmd) return pCmd->TheStructure.Common.DwordLength + 2; } { auto pCmd = genCmdCast(cmd); if (pCmd) return pCmd->TheStructure.Common.DwordLength + 2; } return 0; } template struct CmdParse; namespace OCLRT { template void HardwareParse::findHardwareCommands(); template const void *HardwareParse::getStatelessArgumentPointer(const Kernel &kernel, uint32_t indexArg, IndirectHeap &ioh); } // namespace OCLRT