mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
Related-To: NEO-5112 Change-Id: I1b6950d0308d98cca09051d6fea46d51c10d2a6a Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
24 lines
808 B
C++
24 lines
808 B
C++
/*
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/command_stream/device_command_stream.h"
|
|
|
|
#include "opencl/source/command_stream/command_stream_receiver_with_aub_dump.h"
|
|
#include "opencl/source/os_interface/linux/drm_command_stream.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <typename GfxFamily>
|
|
CommandStreamReceiver *DeviceCommandStreamReceiver<GfxFamily>::create(bool withAubDump, ExecutionEnvironment &executionEnvironment, uint32_t rootDeviceIndex) {
|
|
if (withAubDump) {
|
|
return new CommandStreamReceiverWithAUBDump<DrmCommandStreamReceiver<GfxFamily>>("aubfile", executionEnvironment, rootDeviceIndex);
|
|
} else {
|
|
return new DrmCommandStreamReceiver<GfxFamily>(executionEnvironment, rootDeviceIndex);
|
|
}
|
|
};
|
|
} // namespace NEO
|