Add new IGC interfaces

Related-To: NEO-4773

Change-Id: Ie6b2e2fa414c909c349b85279c4af9ee4f8433e8
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2020-10-23 14:38:35 +02:00
committed by sys_ocldev
parent e7bd82c971
commit c50dc43f5b
2 changed files with 19 additions and 1 deletions

View File

@ -132,6 +132,12 @@ IgcOclTranslationCtxBase *CIF_GET_INTERFACE_CLASS(IgcOclDeviceCtx, 1)::CreateTra
return nullptr;
}
bool CIF_GET_INTERFACE_CLASS(IgcOclDeviceCtx, 2)::GetSystemRoutine(IGC::SystemRoutineType::SystemRoutineType_t typeOfSystemRoutine,
bool bindless,
CIF::Builtins::BufferSimple *outSystemRoutineBuffer,
CIF::Builtins::BufferSimple *stateSaveAreaHeaderInit) {
return true;
}
// Platform stubs
Platform<0>::~Platform() {}
@ -480,6 +486,13 @@ IGC::IgcOclTranslationCtxBase *MockIgcOclDeviceCtx::CreateTranslationCtxImpl(CIF
return new MockIgcOclTranslationCtx;
}
bool MockIgcOclDeviceCtx::GetSystemRoutine(IGC::SystemRoutineType::SystemRoutineType_t typeOfSystemRoutine,
bool bindless,
CIF::Builtins::BufferSimple *outSystemRoutineBuffer,
CIF::Builtins::BufferSimple *stateSaveAreaHeaderInit) {
return true;
}
MockIgcOclTranslationCtx::MockIgcOclTranslationCtx() = default;
MockIgcOclTranslationCtx::~MockIgcOclTranslationCtx() = default;

View File

@ -178,7 +178,7 @@ struct MockOclTranslationOutput : MockCIF<IGC::OclTranslationOutputTagOCL> {
MockCIFBuffer *debugData = nullptr;
};
struct MockIgcOclDeviceCtx : MockCIF<IGC::IgcOclDeviceCtxTagOCL> {
struct MockIgcOclDeviceCtx : MockCIF<IGC::IgcOclDeviceCtx<2>> {
static CIF::ICIF *Create(CIF::InterfaceId_t intId, CIF::Version_t version);
MockIgcOclDeviceCtx();
@ -209,6 +209,11 @@ struct MockIgcOclDeviceCtx : MockCIF<IGC::IgcOclDeviceCtxTagOCL> {
IGC::CodeType::CodeType_t inType,
IGC::CodeType::CodeType_t outType) override;
bool GetSystemRoutine(IGC::SystemRoutineType::SystemRoutineType_t typeOfSystemRoutine,
bool bindless,
CIF::Builtins::BufferSimple *outSystemRoutineBuffer,
CIF::Builtins::BufferSimple *stateSaveAreaHeaderInit) override;
void SetDebugVars(MockCompilerDebugVars &debugVars) {
this->debugVars = debugVars;
}