2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2022-07-08 07:55:53 +08:00
|
|
|
* Copyright (C) 2018-2022 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)
|
2021-09-23 06:03:07 +08:00
|
|
|
#include "shared/source/command_stream/command_stream_receiver_with_aub_dump.h"
|
2020-03-03 18:59:49 +08:00
|
|
|
#include "shared/source/command_stream/device_command_stream.h"
|
2021-09-16 20:31:00 +08:00
|
|
|
#include "shared/source/helpers/api_specific_config.h"
|
2021-09-23 17:03:22 +08:00
|
|
|
#include "shared/source/os_interface/windows/wddm_device_command_stream.h"
|
2020-07-30 21:02:11 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#pragma warning(pop)
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
2021-05-28 01:44:47 +08:00
|
|
|
CommandStreamReceiver *createWddmCommandStreamReceiver(bool withAubDump,
|
|
|
|
ExecutionEnvironment &executionEnvironment,
|
|
|
|
uint32_t rootDeviceIndex,
|
|
|
|
const DeviceBitfield deviceBitfield) {
|
2018-01-19 17:00:51 +08:00
|
|
|
if (withAubDump) {
|
2021-09-16 20:31:00 +08:00
|
|
|
return new CommandStreamReceiverWithAUBDump<WddmCommandStreamReceiver<GfxFamily>>(ApiSpecificConfig::getName(),
|
2020-10-29 22:33:35 +08:00
|
|
|
executionEnvironment,
|
|
|
|
rootDeviceIndex,
|
|
|
|
deviceBitfield);
|
2018-01-19 17:00:51 +08:00
|
|
|
} else {
|
2020-10-28 23:08:37 +08:00
|
|
|
return new WddmCommandStreamReceiver<GfxFamily>(executionEnvironment, rootDeviceIndex, deviceBitfield);
|
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
|