Shift csr factory initialization to shared library

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2021-12-21 17:36:40 +00:00
committed by Compute-Runtime-Automation
parent 0fd685541d
commit 6ab4b566aa
21 changed files with 76 additions and 115 deletions

View File

@@ -5,8 +5,12 @@
*
*/
#include "shared/source/gen8/hw_cmds.h"
#include "shared/source/command_stream/aub_command_stream_receiver_hw.h"
#include "shared/source/command_stream/command_stream_receiver_hw.h"
#include "shared/source/command_stream/tbx_command_stream_receiver_hw.h"
#include "shared/source/gen9/hw_cmds.h"
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/populate_factory.h"
#include <type_traits>
@@ -14,12 +18,15 @@ namespace NEO {
extern HwHelper *hwHelperFactory[IGFX_MAX_CORE];
typedef SKLFamily Family;
using Family = SKLFamily;
static const auto gfxFamily = IGFX_GEN9_CORE;
struct EnableCoreGen9 {
EnableCoreGen9() {
hwHelperFactory[gfxFamily] = &HwHelperHw<Family>::get();
populateFactoryTable<AUBCommandStreamReceiverHw<Family>>();
populateFactoryTable<CommandStreamReceiverHw<Family>>();
populateFactoryTable<TbxCommandStreamReceiverHw<Family>>();
}
};