@@ -36,60 +36,7 @@ GMM_MUTEX_HANDLE GmmLib::Context::SingletonContextSyncMutex = ::CreateMutex(NULL
3636GMM_MUTEX_HANDLE GmmLib::Context::SingletonContextSyncMutex = PTHREAD_MUTEX_INITIALIZER;
3737#endif // _WIN32
3838#endif
39- // ///////////////////////////////////////////////////////////////////////////////////
40- // / GMM lib DLL exported functions for creating Singleton Context (GmmLib::Context)
41- // / object which shall be process singleton across all UMD clients within a process.
42- // / @see Class GmmLib::Context
43- // /
44- // / @param[in] Platform: platform variable. Includes product family (Haswell, Cherryview,
45- // / Broxton) with related render and display core revision (GEN3,
46- // ..., GEN10)
47- // / @param[in] pSkuTable: Pointer to the sku feature table. Set of capabilities to
48- // / allow code paths to be feature based and GEN agnostic.
49- // / @param[in] pWaTable: Pointer to the work around table. A set of anti-features,
50- // / often in early/prototype silicon that require work-arounds
51- // / until they are resolved to allow code paths to be GEN agnostic.
52- // / @param[in] pGtSysInfo: Pointer to the GT system info. Contains various GT System
53- // / Information such as EU counts, Thread Counts, Cache Sizes etc.
54- // / @return GMM_SUCCESS if Context is created, GMM_ERROR otherwise
55- // ///////////////////////////////////////////////////////////////////////////////////
56- #ifdef _WIN32
57- extern " C" GMM_STATUS GMM_STDCALL GmmCreateSingletonContext (const PLATFORM Platform,
58- const SKU_FEATURE_TABLE *pSkuTable,
59- const WA_TABLE * pWaTable,
60- const GT_SYSTEM_INFO * pGtSysInfo)
61- #else
62- extern " C" GMM_STATUS GMM_STDCALL GmmCreateSingletonContext (const PLATFORM Platform,
63- const void * pSkuTable,
64- const void * pWaTable,
65- const void * pGtSysInfo)
66- #endif
67- {
68- #if GMM_LIB_DLL_MA
69-
70- // To be backward compatible and to use new Multi-Adapter API defined for creation of
71- // Adapter Singletoncontext, hardcoding BDF to {020}
72- ADAPTER_BDF sBdf = {0 , 2 , 0 , 0 };
73- return GmmCreateLibContext (Platform, pSkuTable, pWaTable, pGtSysInfo, sBdf );
74-
75- #endif
76- }
77-
7839
79- // ///////////////////////////////////////////////////////////////////////////////////
80- // / GMM lib DLL exported functions for deleting the Singleton Context.
81- // / Reference Count will be decremented and once the reference count reaches 0,
82- // / Singleton Context will be freeed in memory
83- // ///////////////////////////////////////////////////////////////////////////////////
84- extern " C" void GMM_STDCALL GmmDestroySingletonContext (void )
85- {
86- #if GMM_LIB_DLL_MA
87- // To be backward compatible and to use new Multi-Adapter API defined for destroy of
88- // Adapter Singletoncontext, hardcoding BDF to {020}
89- ADAPTER_BDF sBdf = {0 , 2 , 0 , 0 };
90- GmmLibContextFree (sBdf );
91- #endif
92- }
9340// ///////////////////////////////////////////////////////////////////////////////////
9441// / GMM lib DLL Multi Adapter Functions
9542// ///////////////////////////////////////////////////////////////////////////////////
0 commit comments