mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Related-To: NEO-4344 Change-Id: I356b46bdfac7c943b95ee6dc41d3416bd880f9cb Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
30 lines
1.1 KiB
C++
30 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
// 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)
|
|
#include "shared/source/command_stream/device_command_stream.h"
|
|
#include "shared/source/helpers/hw_cmds.h"
|
|
|
|
#include "opencl/source/command_stream/command_stream_receiver_with_aub_dump.h"
|
|
#include "opencl/source/os_interface/windows/wddm_device_command_stream.h"
|
|
#pragma warning(pop)
|
|
|
|
namespace NEO {
|
|
|
|
template <typename GfxFamily>
|
|
CommandStreamReceiver *DeviceCommandStreamReceiver<GfxFamily>::create(bool withAubDump, ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex) {
|
|
if (withAubDump) {
|
|
return new CommandStreamReceiverWithAUBDump<WddmCommandStreamReceiver<GfxFamily>>("aubfile", executionEnvironment, rootDeviceIndex);
|
|
} else {
|
|
return new WddmCommandStreamReceiver<GfxFamily>(executionEnvironment, rootDeviceIndex);
|
|
}
|
|
}
|
|
} // namespace NEO
|