mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 04:12:57 +08:00
Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "GmmLib.h"
|
|
|
|
GMM_CLIENT_CONTEXT *GMM_STDCALL createClientContext(GMM_CLIENT ClientType) {
|
|
return reinterpret_cast<GMM_CLIENT_CONTEXT *>(0x1);
|
|
}
|
|
void GMM_STDCALL deleteClientContext(GMM_CLIENT_CONTEXT *pGmmClientContext) {
|
|
}
|
|
void GMM_STDCALL destroySingletonContext(void) {
|
|
}
|
|
#ifdef _WIN32
|
|
GMM_STATUS GMM_STDCALL createSingletonContext(const PLATFORM Platform,
|
|
const SKU_FEATURE_TABLE *pSkuTable,
|
|
const WA_TABLE *pWaTable,
|
|
const GT_SYSTEM_INFO *pGtSysInfo) {
|
|
return GMM_SUCCESS;
|
|
}
|
|
#else
|
|
GMM_STATUS GMM_STDCALL createSingletonContext(const PLATFORM Platform,
|
|
const void *pSkuTable,
|
|
const void *pWaTable,
|
|
const void *pGtSysInfo) {
|
|
return GMM_SUCCESS;
|
|
}
|
|
#endif
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
GMM_STATUS GMM_STDCALL openMockGmm(GmmExportEntries *pm_GmmFuncs) {
|
|
pm_GmmFuncs->pfnCreateClientContext = &createClientContext;
|
|
pm_GmmFuncs->pfnCreateSingletonContext = &createSingletonContext;
|
|
pm_GmmFuncs->pfnDeleteClientContext = &deleteClientContext;
|
|
pm_GmmFuncs->pfnDestroySingletonContext = &destroySingletonContext;
|
|
return GMM_SUCCESS;
|
|
}
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|