2019-01-10 22:36:57 +08:00
|
|
|
/*
|
2019-12-18 18:40:25 +08:00
|
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
2019-01-10 22:36:57 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-23 05:50:57 +08:00
|
|
|
#include "opencl/source/helpers/base_object.h"
|
2020-02-23 16:03:33 +08:00
|
|
|
|
|
|
|
#include "libult/ult_command_stream_receiver.h"
|
2019-01-10 22:36:57 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
typedef ICLFamily Family;
|
|
|
|
|
|
|
|
static auto gfxCore = IGFX_GEN11_CORE;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
template class UltCommandStreamReceiver<ICLFamily>;
|
|
|
|
} // namespace NEO
|