2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2018-2021 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
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
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-05-28 01:44:47 +08:00
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.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/linux/drm_command_stream.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
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 *createDrmCommandStreamReceiver(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<DrmCommandStreamReceiver<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-29 22:33:35 +08:00
|
|
|
return new DrmCommandStreamReceiver<GfxFamily>(executionEnvironment,
|
|
|
|
rootDeviceIndex,
|
2021-06-28 21:10:21 +08:00
|
|
|
deviceBitfield);
|
2018-01-19 17:00:51 +08:00
|
|
|
}
|
2021-05-28 01:44:47 +08:00
|
|
|
}
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|