2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-02-06 00:38:57 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Need to suppress warining 4005 caused by hw_cmds.h and wddm.h order.
|
|
|
|
// Current order must be preserved due to two versions of igfxfmid.h
|
|
|
|
#pragma warning(push)
|
|
|
|
#pragma warning(disable : 4005)
|
2018-01-19 17:00:51 +08:00
|
|
|
#include "runtime/command_stream/command_stream_receiver_with_aub_dump.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "runtime/command_stream/device_command_stream.h"
|
2019-11-18 23:48:41 +08:00
|
|
|
#include "runtime/gen_common/hw_cmds.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "runtime/os_interface/windows/wddm_device_command_stream.h"
|
|
|
|
#pragma warning(pop)
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
2019-10-29 15:01:53 +08:00
|
|
|
CommandStreamReceiver *DeviceCommandStreamReceiver<GfxFamily>::create(bool withAubDump, ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex) {
|
2018-01-19 17:00:51 +08:00
|
|
|
if (withAubDump) {
|
2019-10-29 15:01:53 +08:00
|
|
|
return new CommandStreamReceiverWithAUBDump<WddmCommandStreamReceiver<GfxFamily>>("aubfile", executionEnvironment, rootDeviceIndex);
|
2018-01-19 17:00:51 +08:00
|
|
|
} else {
|
2019-10-29 15:01:53 +08:00
|
|
|
return new WddmCommandStreamReceiver<GfxFamily>(executionEnvironment, rootDeviceIndex);
|
2018-01-19 17:00:51 +08:00
|
|
|
}
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|