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
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "runtime/command_stream/device_command_stream.h"
|
2018-01-19 17:00:51 +08:00
|
|
|
#include "runtime/command_stream/command_stream_receiver_with_aub_dump.h"
|
|
|
|
#include "runtime/os_interface/linux/drm_command_stream.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "hw_cmds.h"
|
|
|
|
#include "drm_command_stream.h"
|
|
|
|
|
|
|
|
namespace OCLRT {
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
2018-08-08 19:49:09 +08:00
|
|
|
CommandStreamReceiver *DeviceCommandStreamReceiver<GfxFamily>::create(const HardwareInfo &hwInfo, bool withAubDump, ExecutionEnvironment &executionEnvironment) {
|
2018-01-19 17:00:51 +08:00
|
|
|
if (withAubDump) {
|
2019-02-06 00:38:57 +08:00
|
|
|
return new CommandStreamReceiverWithAUBDump<DrmCommandStreamReceiver<GfxFamily>>(hwInfo, "aubfile", executionEnvironment);
|
2018-01-19 17:00:51 +08:00
|
|
|
} else {
|
2018-08-30 15:27:47 +08:00
|
|
|
return new DrmCommandStreamReceiver<GfxFamily>(hwInfo, executionEnvironment);
|
2018-01-19 17:00:51 +08:00
|
|
|
}
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
2018-06-13 03:54:39 +08:00
|
|
|
} // namespace OCLRT
|