1 /* 2 * Copyright (C) 2019-2021 Intel Corporation 3 * 4 * SPDX-License-Identifier: MIT 5 * 6 */ 7 8 #include "shared/source/helpers/populate_factory.h" 9 #include "shared/test/common/libult/ult_command_stream_receiver.h" 10 11 namespace NEO { 12 13 typedef TGLLPFamily Family; 14 15 static auto gfxCore = IGFX_GEN12LP_CORE; 16 17 extern CommandStreamReceiverCreateFunc commandStreamReceiverFactory[2 * IGFX_MAX_CORE]; 18 19 template <> populateFactoryTable()20void populateFactoryTable<UltCommandStreamReceiver<Family>>() { 21 commandStreamReceiverFactory[IGFX_MAX_CORE + gfxCore] = UltCommandStreamReceiver<Family>::create; 22 } 23 24 struct enableGen12LP { enableGen12LPNEO::enableGen12LP25 enableGen12LP() { 26 populateFactoryTable<UltCommandStreamReceiver<Family>>(); 27 } 28 }; 29 30 static enableGen12LP enable; 31 32 template class UltCommandStreamReceiver<TGLLPFamily>; 33 } // namespace NEO 34