mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
e7bd82c971
commit
c50dc43f5b
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user