mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 00:59:38 +08:00
Create wrapper for Gmm exported functions
Related-To: NEO-2551 Change-Id: I6d2912b2cb020e9544e52af7c46f54d5174a1a52 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
cccb95bc4e
commit
9562daa2d0
@@ -5,14 +5,16 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "GmmLib.h"
|
||||
#include "core/gmm_helper/gmm_interface.h"
|
||||
|
||||
namespace NEO {
|
||||
GMM_INIT_IN_ARGS passedInputArgs = {};
|
||||
SKU_FEATURE_TABLE passedFtrTable = {};
|
||||
WA_TABLE passedWaTable = {};
|
||||
bool copyInputArgs = false;
|
||||
|
||||
GMM_STATUS GMM_STDCALL InitializeGmm(GMM_INIT_IN_ARGS *pInArgs, GMM_INIT_OUT_ARGS *pOutArgs) {
|
||||
namespace GmmInterface {
|
||||
GMM_STATUS initialize(GMM_INIT_IN_ARGS *pInArgs, GMM_INIT_OUT_ARGS *pOutArgs) {
|
||||
pOutArgs->pGmmClientContext = reinterpret_cast<GMM_CLIENT_CONTEXT *>(0x01);
|
||||
if (pInArgs) {
|
||||
if (pInArgs->Platform.eProductFamily == PRODUCT_FAMILY::IGFX_UNKNOWN &&
|
||||
@@ -29,5 +31,7 @@ GMM_STATUS GMM_STDCALL InitializeGmm(GMM_INIT_IN_ARGS *pInArgs, GMM_INIT_OUT_ARG
|
||||
return GMM_INVALIDPARAM;
|
||||
}
|
||||
|
||||
void GMM_STDCALL GmmAdapterDestroy(GMM_INIT_OUT_ARGS *pInArgs) {
|
||||
void destroy(GMM_INIT_OUT_ARGS *pInArgs) {
|
||||
}
|
||||
} // namespace GmmInterface
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user