/* * 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 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