mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 03:01:20 +08:00
Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
29 lines
828 B
C++
29 lines
828 B
C++
/*
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/command_stream/tbx_command_stream_receiver.h"
|
|
#include "runtime/helpers/hw_info.h"
|
|
#include "runtime/helpers/options.h"
|
|
#include <string>
|
|
|
|
namespace OCLRT {
|
|
|
|
TbxCommandStreamReceiverCreateFunc tbxCommandStreamReceiverFactory[IGFX_MAX_CORE] = {};
|
|
|
|
CommandStreamReceiver *TbxCommandStreamReceiver::create(const HardwareInfo &hwInfo, bool withAubDump, ExecutionEnvironment &executionEnvironment) {
|
|
|
|
if (hwInfo.pPlatform->eRenderCoreFamily >= IGFX_MAX_CORE) {
|
|
DEBUG_BREAK_IF(!false);
|
|
return nullptr;
|
|
}
|
|
|
|
auto pCreate = tbxCommandStreamReceiverFactory[hwInfo.pPlatform->eRenderCoreFamily];
|
|
|
|
return pCreate ? pCreate(hwInfo, withAubDump, executionEnvironment) : nullptr;
|
|
}
|
|
} // namespace OCLRT
|