2019-01-10 22:36:57 +08:00
|
|
|
/*
|
2022-06-24 21:56:25 +08:00
|
|
|
* Copyright (C) 2019-2022 Intel Corporation
|
2019-01-10 22:36:57 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-06-24 21:56:25 +08:00
|
|
|
#include "shared/source/gen11/hw_cmds.h"
|
2020-10-14 20:04:29 +08:00
|
|
|
#include "shared/source/helpers/populate_factory.h"
|
2021-10-13 00:42:24 +08:00
|
|
|
#include "shared/test/common/libult/ult_command_stream_receiver.h"
|
2022-07-05 23:55:15 +08:00
|
|
|
#include "shared/test/common/mocks/mock_l0_debugger.h"
|
2019-01-10 22:36:57 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
typedef ICLFamily Family;
|
|
|
|
|
2022-07-05 23:55:15 +08:00
|
|
|
constexpr auto gfxCore = IGFX_GEN11_CORE;
|
2019-01-10 22:36:57 +08:00
|
|
|
|
|
|
|
extern CommandStreamReceiverCreateFunc commandStreamReceiverFactory[2 * IGFX_MAX_CORE];
|
|
|
|
|
|
|
|
template <>
|
|
|
|
void populateFactoryTable<UltCommandStreamReceiver<Family>>() {
|
|
|
|
commandStreamReceiverFactory[IGFX_MAX_CORE + gfxCore] = UltCommandStreamReceiver<Family>::create;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct enableGen11 {
|
|
|
|
enableGen11() {
|
|
|
|
populateFactoryTable<UltCommandStreamReceiver<Family>>();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
static enableGen11 enable;
|
|
|
|
|
2022-07-05 23:55:15 +08:00
|
|
|
static MockDebuggerL0HwPopulateFactory<gfxCore, Family> mockDebuggerGen11;
|
|
|
|
|
2019-01-10 22:36:57 +08:00
|
|
|
template class UltCommandStreamReceiver<ICLFamily>;
|
|
|
|
} // namespace NEO
|