2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2019-02-05 17:38:57 +01:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2018-01-19 10:00:51 +01:00
|
|
|
#include "runtime/command_stream/command_stream_receiver_with_aub_dump.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
#include "runtime/command_stream/device_command_stream.h"
|
2018-01-19 10:00:51 +01:00
|
|
|
#include "runtime/os_interface/linux/drm_command_stream.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
#include "drm_command_stream.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
#include "hw_cmds.h"
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
namespace OCLRT {
|
|
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
2018-08-08 13:49:09 +02:00
|
|
|
CommandStreamReceiver *DeviceCommandStreamReceiver<GfxFamily>::create(const HardwareInfo &hwInfo, bool withAubDump, ExecutionEnvironment &executionEnvironment) {
|
2018-01-19 10:00:51 +01:00
|
|
|
if (withAubDump) {
|
2019-02-05 17:38:57 +01:00
|
|
|
return new CommandStreamReceiverWithAUBDump<DrmCommandStreamReceiver<GfxFamily>>(hwInfo, "aubfile", executionEnvironment);
|
2018-01-19 10:00:51 +01:00
|
|
|
} else {
|
2018-08-30 09:27:47 +02:00
|
|
|
return new DrmCommandStreamReceiver<GfxFamily>(hwInfo, executionEnvironment);
|
2018-01-19 10:00:51 +01:00
|
|
|
}
|
2017-12-21 00:45:38 +01:00
|
|
|
};
|
2018-06-12 21:54:39 +02:00
|
|
|
} // namespace OCLRT
|