mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
- remove hwInfo from the csr functions where it was passed as a parameter, now csr functions have access to hwInfo by Execution Environment Change-Id: I756ae63d9728c9c963571147bab97f9e1c15797b Signed-off-by: Adam Stefanowski <adam.stefanowski@intel.com>
30 lines
982 B
C++
30 lines
982 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
// 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)
|
|
#include "runtime/command_stream/command_stream_receiver_with_aub_dump.h"
|
|
#include "runtime/command_stream/device_command_stream.h"
|
|
#include "runtime/os_interface/windows/wddm_device_command_stream.h"
|
|
|
|
#include "hw_cmds.h"
|
|
#pragma warning(pop)
|
|
|
|
namespace OCLRT {
|
|
|
|
template <typename GfxFamily>
|
|
CommandStreamReceiver *DeviceCommandStreamReceiver<GfxFamily>::create(bool withAubDump, ExecutionEnvironment &executionEnvironment) {
|
|
if (withAubDump) {
|
|
return new CommandStreamReceiverWithAUBDump<WddmCommandStreamReceiver<GfxFamily>>("aubfile", executionEnvironment);
|
|
} else {
|
|
return new WddmCommandStreamReceiver<GfxFamily>(executionEnvironment);
|
|
}
|
|
}
|
|
} // namespace OCLRT
|