1 /* 2 * Copyright (C) 2019-2021 Intel Corporation 3 * 4 * SPDX-License-Identifier: MIT 5 * 6 */ 7 8 #include "shared/source/aub_mem_dump/aub_mem_dump.h" 9 #include "shared/source/command_stream/command_stream_receiver_with_aub_dump.inl" 10 #include "shared/source/command_stream/tbx_command_stream_receiver_hw.h" 11 #include "shared/source/command_stream/tbx_command_stream_receiver_hw.inl" 12 #include "shared/source/gen12lp/hw_cmds.h" 13 #include "shared/source/helpers/array_count.h" 14 #include "shared/source/helpers/populate_factory.h" 15 #include "shared/source/memory_manager/memory_pool.h" 16 17 namespace NEO { 18 typedef TGLLPFamily Family; 19 static auto gfxCore = IGFX_GEN12LP_CORE; 20 21 template <> getMaskAndValueForPollForCompletion() const22uint32_t TbxCommandStreamReceiverHw<Family>::getMaskAndValueForPollForCompletion() const { 23 return 0x80; 24 } 25 26 template <> getpollNotEqualValueForPollForCompletion() const27bool TbxCommandStreamReceiverHw<Family>::getpollNotEqualValueForPollForCompletion() const { 28 return true; 29 } 30 31 template <> populateFactoryTable()32void populateFactoryTable<TbxCommandStreamReceiverHw<Family>>() { 33 extern TbxCommandStreamReceiverCreateFunc tbxCommandStreamReceiverFactory[IGFX_MAX_CORE]; 34 UNRECOVERABLE_IF(!isInRange(gfxCore, tbxCommandStreamReceiverFactory)); 35 tbxCommandStreamReceiverFactory[gfxCore] = TbxCommandStreamReceiverHw<Family>::create; 36 } 37 38 template class TbxCommandStreamReceiverHw<Family>; 39 template class CommandStreamReceiverWithAUBDump<TbxCommandStreamReceiverHw<Family>>; 40 } // namespace NEO 41