2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2019-03-26 18:59:46 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-10-14 20:04:29 +08:00
|
|
|
#include "shared/source/helpers/populate_factory.h"
|
|
|
|
|
2020-02-23 22:20:22 +08:00
|
|
|
#include "opencl/test/unit_test/libult/ult_command_stream_receiver.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
typedef BDWFamily Family;
|
|
|
|
|
|
|
|
static const 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;
|
|
|
|
|
|
|
|
template class UltCommandStreamReceiver<BDWFamily>;
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|