mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 18:37:46 +08:00
Change-Id: Ibf164cb589c016853d0b3f6636b3b959dc835af6 Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
21 lines
523 B
C++
21 lines
523 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "core/device/device.h"
|
|
#include "core/helpers/hw_helper.h"
|
|
#include "runtime/command_stream/command_stream_receiver.h"
|
|
|
|
namespace NEO {
|
|
|
|
EngineControl &Device::getInternalEngine() {
|
|
if (this->engines[0].commandStreamReceiver->getType() != CommandStreamReceiverType::CSR_HW) {
|
|
return this->getDefaultEngine();
|
|
}
|
|
return this->getDeviceById(0)->engines[HwHelper::internalUsageEngineIndex];
|
|
}
|
|
} // namespace NEO
|