Add new IGC mocks for new interface

Signed-off-by: DmitryBushev <dmitry.bushev@intel.com>
This commit is contained in:
DmitryBushev
2021-09-08 18:27:46 +03:00
committed by Compute-Runtime-Automation
parent fe93ce83c8
commit f0003c1da6
2 changed files with 6 additions and 1 deletions

View File

@ -137,6 +137,11 @@ bool CIF_GET_INTERFACE_CLASS(IgcOclDeviceCtx, 2)::GetSystemRoutine(IGC::SystemRo
CIF::Builtins::BufferSimple *stateSaveAreaHeaderInit) { CIF::Builtins::BufferSimple *stateSaveAreaHeaderInit) {
return true; return true;
} }
const char *CIF_GET_INTERFACE_CLASS(IgcOclDeviceCtx, 3)::GetIGCRevision() {
return "";
}
// Platform stubs // Platform stubs
Platform<0>::~Platform() {} Platform<0>::~Platform() {}

View File

@ -185,7 +185,7 @@ struct MockOclTranslationOutput : MockCIF<IGC::OclTranslationOutputTagOCL> {
MockCIFBuffer *debugData = nullptr; MockCIFBuffer *debugData = nullptr;
}; };
struct MockIgcOclDeviceCtx : MockCIF<IGC::IgcOclDeviceCtx<2>> { struct MockIgcOclDeviceCtx : MockCIF<IGC::IgcOclDeviceCtxTagOCL> {
static CIF::ICIF *Create(CIF::InterfaceId_t intId, CIF::Version_t version); static CIF::ICIF *Create(CIF::InterfaceId_t intId, CIF::Version_t version);
MockIgcOclDeviceCtx(); MockIgcOclDeviceCtx();