mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Switch to new version of GT-Pin headers
Change-Id: I909d1c578b4b9c3d7e24d3e33a9bfd86a815ab14
This commit is contained in:
@@ -33,17 +33,17 @@ using namespace OCLRT;
|
||||
|
||||
namespace OCLRT {
|
||||
bool isGTPinInitialized = false;
|
||||
gtpin::dx11::gtpin_events_t GTPinCallbacks = {0};
|
||||
gtpin::ocl::gtpin_events_t GTPinCallbacks = {0};
|
||||
}
|
||||
|
||||
GTPIN_DI_STATUS GTPin_Init(gtpin::dx11::gtpin_events_t *pGtpinEvents, driver_services_t *pDriverServices,
|
||||
GTPIN_DI_STATUS GTPin_Init(gtpin::ocl::gtpin_events_t *pGtpinEvents, driver_services_t *pDriverServices,
|
||||
uint32_t *pDriverVersion) {
|
||||
if (isGTPinInitialized) {
|
||||
return GTPIN_DI_ERROR_INSTANCE_ALREADY_CREATED;
|
||||
}
|
||||
if (pDriverVersion != nullptr) {
|
||||
// GT-Pin is asking to obtain GT-Pin Interface version that is supported
|
||||
*pDriverVersion = gtpin::dx11::GTPIN_DX11_INTERFACE_VERSION;
|
||||
*pDriverVersion = gtpin::ocl::GTPIN_OCL_INTERFACE_VERSION;
|
||||
|
||||
if ((pDriverServices == nullptr) || (pGtpinEvents == nullptr)) {
|
||||
return GTPIN_DI_SUCCESS;
|
||||
@@ -55,10 +55,9 @@ GTPIN_DI_STATUS GTPin_Init(gtpin::dx11::gtpin_events_t *pGtpinEvents, driver_ser
|
||||
if ((pGtpinEvents->onContextCreate == nullptr) ||
|
||||
(pGtpinEvents->onContextDestroy == nullptr) ||
|
||||
(pGtpinEvents->onKernelCreate == nullptr) ||
|
||||
(pGtpinEvents->onDraw == nullptr) ||
|
||||
(pGtpinEvents->onKernelSubmit == nullptr) ||
|
||||
(pGtpinEvents->onCommandBufferCreate == nullptr) ||
|
||||
(pGtpinEvents->onCommandBufferSubmit == nullptr)) {
|
||||
(pGtpinEvents->onCommandBufferComplete == nullptr)) {
|
||||
return GTPIN_DI_ERROR_INVALID_ARGUMENT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user