mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Don't pass ClDevice to initSipKernel function
Change-Id: Ib7dd5445c4f95c9703755b5a81c2909dec394de4 Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
647ee40f0c
commit
ea172d2f24
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user