Files
compute-runtime/runtime/os_interface/linux/device_command_stream.inl
Mateusz Hoppe 8cfcfd6702 Cleanup header includes
Change-Id: Ic1f7e0b767682ee874088c1b489a93073a0b7fc5
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-02-06 16:56:44 +01:00

23 lines
789 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/command_stream/command_stream_receiver_with_aub_dump.h"
#include "runtime/command_stream/device_command_stream.h"
#include "runtime/os_interface/linux/drm_command_stream.h"
namespace NEO {
template <typename GfxFamily>
CommandStreamReceiver *DeviceCommandStreamReceiver<GfxFamily>::create(bool withAubDump, ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex) {
if (withAubDump) {
return new CommandStreamReceiverWithAUBDump<DrmCommandStreamReceiver<GfxFamily>>("aubfile", executionEnvironment, rootDeviceIndex);
} else {
return new DrmCommandStreamReceiver<GfxFamily>(executionEnvironment, rootDeviceIndex);
}
};
} // namespace NEO