37 lines
951 B
C++
37 lines
951 B
C++
/*
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/gen8/hw_cmds.h"
|
|
#include "shared/source/helpers/populate_factory.h"
|
|
#include "shared/test/common/libult/ult_command_stream_receiver.h"
|
|
#include "shared/test/common/mocks/mock_l0_debugger.h"
|
|
|
|
namespace NEO {
|
|
|
|
typedef Gen8Family Family;
|
|
|
|
constexpr auto gfxCore = IGFX_GEN8_CORE;
|
|
|
|
extern CommandStreamReceiverCreateFunc commandStreamReceiverFactory[2 * IGFX_MAX_CORE];
|
|
|
|
template <>
|
|
void populateFactoryTable<UltCommandStreamReceiver<Family>>() {
|
|
commandStreamReceiverFactory[IGFX_MAX_CORE + gfxCore] = UltCommandStreamReceiver<Family>::create;
|
|
}
|
|
|
|
struct enableGen8 {
|
|
enableGen8() {
|
|
populateFactoryTable<UltCommandStreamReceiver<Family>>();
|
|
}
|
|
};
|
|
|
|
static enableGen8 enable;
|
|
static MockDebuggerL0HwPopulateFactory<gfxCore, Family> mockDebuggerGen8;
|
|
|
|
template class UltCommandStreamReceiver<Gen8Family>;
|
|
} // namespace NEO
|