2019-09-19 01:32:33 +08:00
|
|
|
/*
|
2023-04-24 17:39:55 +08:00
|
|
|
* Copyright (C) 2019-2023 Intel Corporation
|
2019-09-19 01:32:33 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-06-24 21:56:25 +08:00
|
|
|
#include "shared/source/gen12lp/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-09-19 01:32:33 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
2022-07-25 23:30:11 +08:00
|
|
|
typedef Gen12LpFamily Family;
|
2019-09-19 01:32:33 +08:00
|
|
|
|
2022-07-05 23:55:15 +08:00
|
|
|
constexpr auto gfxCore = IGFX_GEN12LP_CORE;
|
2019-09-19 01:32:33 +08:00
|
|
|
|
|
|
|
extern CommandStreamReceiverCreateFunc commandStreamReceiverFactory[2 * IGFX_MAX_CORE];
|
|
|
|
|
|
|
|
template <>
|
|
|
|
void populateFactoryTable<UltCommandStreamReceiver<Family>>() {
|
|
|
|
commandStreamReceiverFactory[IGFX_MAX_CORE + gfxCore] = UltCommandStreamReceiver<Family>::create;
|
|
|
|
}
|
|
|
|
|
2023-04-24 17:39:55 +08:00
|
|
|
struct EnableGen12LP {
|
|
|
|
EnableGen12LP() {
|
2019-09-19 01:32:33 +08:00
|
|
|
populateFactoryTable<UltCommandStreamReceiver<Family>>();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2023-04-24 17:39:55 +08:00
|
|
|
static EnableGen12LP enable;
|
2022-07-05 23:55:15 +08:00
|
|
|
static MockDebuggerL0HwPopulateFactory<gfxCore, Family> mockDebuggerGen12lp;
|
2019-09-19 01:32:33 +08:00
|
|
|
|
2022-07-25 23:30:11 +08:00
|
|
|
template class UltCommandStreamReceiver<Gen12LpFamily>;
|
2019-09-19 01:32:33 +08:00
|
|
|
} // namespace NEO
|