/* * Copyright (C) 2018-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "shared/source/command_stream/command_stream_receiver_hw.h" namespace NEO { template CommandStreamReceiver *createDeviceCommandStreamReceiver(bool withAubDump, ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex, const DeviceBitfield deviceBitfield); template class DeviceCommandStreamReceiver : public CommandStreamReceiverHw { typedef CommandStreamReceiverHw BaseClass; protected: DeviceCommandStreamReceiver(ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex, const DeviceBitfield deviceBitfield) : BaseClass(executionEnvironment, rootDeviceIndex, deviceBitfield) { } public: static CommandStreamReceiver *create(bool withAubDump, ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex, const DeviceBitfield deviceBitfield) { return createDeviceCommandStreamReceiver(withAubDump, executionEnvironment, rootDeviceIndex, deviceBitfield); } }; } // namespace NEO