Don't pass ClDevice to initSipKernel function

Change-Id: Ib7dd5445c4f95c9703755b5a81c2909dec394de4
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:
Jablonski, Mateusz
2020-02-19 09:14:40 +01:00
committed by sys_ocldev
parent 647ee40f0c
commit ea172d2f24
4 changed files with 7 additions and 7 deletions

View File

@@ -7,12 +7,12 @@
#include "runtime/helpers/built_ins_helper.h"
#include "runtime/device/cl_device.h"
#include "core/device/device.h"
#include "runtime/program/program.h"
namespace NEO {
const SipKernel &initSipKernel(SipKernelType type, ClDevice &device) {
return device.getExecutionEnvironment()->getBuiltIns()->getSipKernel(type, device.getDevice());
const SipKernel &initSipKernel(SipKernelType type, Device &device) {
return device.getExecutionEnvironment()->getBuiltIns()->getSipKernel(type, device);
}
Program *createProgramForSip(ExecutionEnvironment &executionEnvironment,
Context *context,

View File

@@ -10,9 +10,9 @@
#include "runtime/built_ins/built_ins.h"
namespace NEO {
class ClDevice;
class Device;
const SipKernel &initSipKernel(SipKernelType type, ClDevice &device);
const SipKernel &initSipKernel(SipKernelType type, Device &device);
Program *createProgramForSip(ExecutionEnvironment &executionEnvironment,
Context *context,
std::vector<char> &binary,

View File

@@ -168,7 +168,7 @@ bool Platform::initialize(std::vector<std::unique_ptr<Device>> devices) {
const bool debuggerActive = executionEnvironment.debugger && executionEnvironment.debugger->isDebuggerActive();
if (clDevices[0]->getPreemptionMode() == PreemptionMode::MidThread || debuggerActive) {
auto sipType = SipKernel::getSipKernelType(hwInfo->platform.eRenderCoreFamily, clDevices[0]->isDebuggerActive());
initSipKernel(sipType, *clDevices[0]);
initSipKernel(sipType, clDevices[0]->getDevice());
}
this->fillGlobalDispatchTable();

View File

@@ -22,7 +22,7 @@ SipKernelType calledType = SipKernelType::COUNT;
bool called = false;
} // namespace MockSipData
const SipKernel &initSipKernel(SipKernelType type, ClDevice &device) {
const SipKernel &initSipKernel(SipKernelType type, Device &device) {
MockSipData::calledType = type;
MockSipData::mockSipKernel->type = type;
MockSipData::called = true;