2020-01-21 09:35:12 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-02-23 18:46:50 +01:00
|
|
|
#include "command_stream/command_stream_receiver.h"
|
|
|
|
|
#include "device/device.h"
|
|
|
|
|
#include "helpers/hw_helper.h"
|
2020-01-21 09:35:12 +01:00
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
|
|
EngineControl &Device::getInternalEngine() {
|
|
|
|
|
if (this->engines[0].commandStreamReceiver->getType() != CommandStreamReceiverType::CSR_HW) {
|
|
|
|
|
return this->getDefaultEngine();
|
|
|
|
|
}
|
2020-02-17 13:02:52 +01:00
|
|
|
return this->getDeviceById(0)->engines[HwHelper::internalUsageEngineIndex];
|
2020-01-21 09:35:12 +01:00
|
|
|
}
|
|
|
|
|
} // namespace NEO
|