2019-09-19 01:32:33 +08:00
|
|
|
/*
|
2021-05-21 18:22:13 +08:00
|
|
|
* Copyright (C) 2019-2021 Intel Corporation
|
2019-09-19 01:32:33 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
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"
|
2019-09-19 01:32:33 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
typedef TGLLPFamily Family;
|
|
|
|
|
|
|
|
static auto gfxCore = IGFX_GEN12LP_CORE;
|
|
|
|
|
|
|
|
extern CommandStreamReceiverCreateFunc commandStreamReceiverFactory[2 * IGFX_MAX_CORE];
|
|
|
|
|
|
|
|
template <>
|
|
|
|
void populateFactoryTable<UltCommandStreamReceiver<Family>>() {
|
|
|
|
commandStreamReceiverFactory[IGFX_MAX_CORE + gfxCore] = UltCommandStreamReceiver<Family>::create;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct enableGen12LP {
|
|
|
|
enableGen12LP() {
|
|
|
|
populateFactoryTable<UltCommandStreamReceiver<Family>>();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
static enableGen12LP enable;
|
|
|
|
|
|
|
|
template class UltCommandStreamReceiver<TGLLPFamily>;
|
|
|
|
} // namespace NEO
|