mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-13 10:14:36 +08:00
Dont use context in built ins
Change-Id: Id2af09190edbc1a3bb930210fe340691aa1e4578 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
1cf9a7c162
commit
b218281488
@@ -23,7 +23,7 @@ namespace NEO {
|
||||
GlobalMockSipProgram *GlobalMockSipProgram::sipProgram;
|
||||
ExecutionEnvironment GlobalMockSipProgram::executionEnvironment;
|
||||
|
||||
ClDevice *MockProgram::getDevicePtr() { return this->pDevice; }
|
||||
Device *MockProgram::getDevicePtr() { return this->pDevice; }
|
||||
|
||||
std::string MockProgram::getCachedFileName() const {
|
||||
auto hwInfo = this->context->getDevice(0)->getHardwareInfo();
|
||||
@@ -60,7 +60,8 @@ void GlobalMockSipProgram::initSipProgram() {
|
||||
binary.data(),
|
||||
binary.size(),
|
||||
true,
|
||||
&retVal);
|
||||
&retVal,
|
||||
nullptr);
|
||||
DEBUG_BREAK_IF(retVal != 0);
|
||||
sipProgram->processGenBinaryOnce();
|
||||
}
|
||||
@@ -106,7 +107,7 @@ Program *GlobalMockSipProgram::getSipProgramWithCustomBinary() {
|
||||
NEO::ProgramInfo programInfo;
|
||||
NEO::populateProgramInfo(programInfo, programTokens);
|
||||
|
||||
Program *ret = new Program(executionEnvironment, nullptr, false);
|
||||
Program *ret = new Program(executionEnvironment, nullptr, false, nullptr);
|
||||
ret->processProgramInfo(programInfo);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user