diff --git a/opencl/test/unit_test/mocks/mock_compilers.cpp b/opencl/test/unit_test/mocks/mock_compilers.cpp index 05bbc0d7eb..23e1ecb7d2 100644 --- a/opencl/test/unit_test/mocks/mock_compilers.cpp +++ b/opencl/test/unit_test/mocks/mock_compilers.cpp @@ -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; diff --git a/opencl/test/unit_test/mocks/mock_compilers.h b/opencl/test/unit_test/mocks/mock_compilers.h index 134484207c..d41ca14bf8 100644 --- a/opencl/test/unit_test/mocks/mock_compilers.h +++ b/opencl/test/unit_test/mocks/mock_compilers.h @@ -178,7 +178,7 @@ struct MockOclTranslationOutput : MockCIF { MockCIFBuffer *debugData = nullptr; }; -struct MockIgcOclDeviceCtx : MockCIF { +struct MockIgcOclDeviceCtx : MockCIF> { static CIF::ICIF *Create(CIF::InterfaceId_t intId, CIF::Version_t version); MockIgcOclDeviceCtx(); @@ -209,6 +209,11 @@ struct MockIgcOclDeviceCtx : MockCIF { 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; }